diff options
author | Philip Thiem <ptthiem@gmail.com> | 2014-05-17 11:40:08 -0500 |
---|---|---|
committer | Philip Thiem <ptthiem@gmail.com> | 2014-05-17 11:40:08 -0500 |
commit | 3e5d3adf96b78fa10f1d1172b4dff32e4366a0ee (patch) | |
tree | 3d88ca1e152782fe8fb3b48a7ed7fa805c3e632d | |
parent | 999a55b7526f857af17d3c85579c7d9380c5baa8 (diff) | |
download | python-setuptools-git-3e5d3adf96b78fa10f1d1172b4dff32e4366a0ee.tar.gz |
Must create files for tests, else they are remoed from manifests
--HG--
extra : rebase_source : c22b55cde69bbf7fc6a075bcd8797017797c6225
-rw-r--r-- | setuptools/tests/test_sdist.py | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index 9d2cc54f..97ac5156 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -75,7 +75,7 @@ def decompose(path): path = unicodedata.normalize('NFD', path) path = path.encode('utf-8') except UnicodeError: - pass # Not UTF-8 + pass # Not UTF-8 return path @@ -132,6 +132,9 @@ class TestSdistTest(unittest.TestCase): # UTF-8 filename filename = os.path.join('sdist_test', 'smörbröd.py') + # Must create the file or it will get stripped. + open(filename, 'w').close() + # Add UTF-8 filename and write manifest with quiet(): mm.run() @@ -251,7 +254,7 @@ class TestSdistTest(unittest.TestCase): filename = os.path.join(b('sdist_test'), b('smörbröd.py')) cmd.manifest = os.path.join('sdist_test.egg-info', 'SOURCES.txt') manifest = open(cmd.manifest, 'ab') - manifest.write(b('\n')+filename) + manifest.write(b('\n') + filename) manifest.close() # The file must exist to be included in the filelist @@ -285,7 +288,7 @@ class TestSdistTest(unittest.TestCase): filename = os.path.join(b('sdist_test'), LATIN1_FILENAME) cmd.manifest = os.path.join('sdist_test.egg-info', 'SOURCES.txt') manifest = open(cmd.manifest, 'ab') - manifest.write(b('\n')+filename) + manifest.write(b('\n') + filename) manifest.close() # The file must exist to be included in the filelist @@ -356,7 +359,7 @@ class TestSdistTest(unittest.TestCase): cmd.run() if PY3: - #not all windows systems have a default FS encoding of cp1252 + # not all windows systems have a default FS encoding of cp1252 if sys.platform == 'win32': # Latin-1 is similar to Windows-1252 however # on mbcs filesys it is not in latin-1 encoding @@ -467,7 +470,7 @@ class TestSvn(environment.ZippedEnvironment): elif self.base_version < (1, 3): raise ValueError('Insufficient SVN Version %s' % version) elif self.base_version >= (1, 9): - #trying the latest version + # trying the latest version self.base_version = (1, 8) self.dataname = "svn%i%i_example" % self.base_version @@ -484,7 +487,7 @@ class TestSvn(environment.ZippedEnvironment): folder2 = 'third_party2' folder3 = 'third_party3' - #TODO is this right + # TODO is this right expected = set([ os.path.join('a file'), os.path.join(folder2, 'Changes.txt'), |