Commit ae9dc8c4 authored by Tarek Ziadé's avatar Tarek Ziadé

#2279: use os.sep so the MANIFEST file test work on win32

parent 7dd53396
...@@ -24,11 +24,11 @@ setup(name='fake') ...@@ -24,11 +24,11 @@ setup(name='fake')
MANIFEST = """\ MANIFEST = """\
README README
setup.py setup.py
data/data.dt data%(sep)sdata.dt
scripts/script.py scripts%(sep)sscript.py
somecode/__init__.py somecode%(sep)s__init__.py
somecode/doc.dat somecode%(sep)sdoc.dat
somecode/doc.txt somecode%(sep)sdoc.txt
""" """
class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase): class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
...@@ -198,7 +198,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase): ...@@ -198,7 +198,7 @@ class sdistTestCase(support.LoggingSilencer, PyPIRCCommandTestCase):
# checking the MANIFEST # checking the MANIFEST
manifest = open(join(self.tmp_dir, 'MANIFEST')).read() manifest = open(join(self.tmp_dir, 'MANIFEST')).read()
self.assertEquals(manifest, MANIFEST) self.assertEquals(manifest, MANIFEST % {'sep': os.sep})
def test_suite(): def test_suite():
return unittest.makeSuite(sdistTestCase) return unittest.makeSuite(sdistTestCase)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment