[Python-checkins] r69693 - python/trunk/Lib/distutils/tests/test_sdist.py
tarek.ziade
python-checkins at python.org
Mon Feb 16 22:41:54 CET 2009
Author: tarek.ziade
Date: Mon Feb 16 22:41:54 2009
New Revision: 69693
Log:
#2279: use os.sep so the MANIFEST file test work on win32
Modified:
python/trunk/Lib/distutils/tests/test_sdist.py
Modified: python/trunk/Lib/distutils/tests/test_sdist.py
==============================================================================
--- python/trunk/Lib/distutils/tests/test_sdist.py (original)
+++ python/trunk/Lib/distutils/tests/test_sdist.py Mon Feb 16 22:41:54 2009
@@ -24,11 +24,11 @@
MANIFEST = """\
README
setup.py
-data/data.dt
-scripts/script.py
-somecode/__init__.py
-somecode/doc.dat
-somecode/doc.txt
+data%(sep)sdata.dt
+scripts%(sep)sscript.py
+somecode%(sep)s__init__.py
+somecode%(sep)sdoc.dat
+somecode%(sep)sdoc.txt
"""
class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
@@ -198,7 +198,7 @@
# checking the MANIFEST
manifest = open(join(self.tmp_dir, 'MANIFEST')).read()
- self.assertEquals(manifest, MANIFEST)
+ self.assertEquals(manifest, MANIFEST % {'sep': os.sep})
def test_suite():
return unittest.makeSuite(sdistTestCase)
More information about the Python-checkins
mailing list