From: Tarek Ziadé Date: Mon, 16 Feb 2009 21:41:54 +0000 (+0000) Subject: #2279: use os.sep so the MANIFEST file test work on win32 X-Git-Tag: v2.7a1~2009 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ae9dc8c48aa0e0db5ce32080d8a28d26e19b7851;p=python #2279: use os.sep so the MANIFEST file test work on win32 --- diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index de588112fd..b4e922f90c 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -24,11 +24,11 @@ setup(name='fake') 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 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase): # 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)