Commit 7192c0fb authored by philip_thiem's avatar philip_thiem

Improved comment in the latin1 sdist test.

parent b9a53c47
...@@ -397,15 +397,12 @@ class TestSdistTest(unittest.TestCase): ...@@ -397,15 +397,12 @@ class TestSdistTest(unittest.TestCase):
filename = filename.decode('latin-1') filename = filename.decode('latin-1')
self.assertFalse(filename in cmd.filelist.files) self.assertFalse(filename in cmd.filelist.files)
else: else:
# Under Python 2 there seems to be no decoding of the # Under Python 2 there seems to be no decoded string in the
# filelist. However, due to decode and encoding of the # filelist. However, due to decode and encoding of the
# file name to utf-8 # file name to get utf-8 Manifest the latin1 maybe excluded
try: try:
#This seems a bit iffy, but not really what else # fs_enc should match how one is expect the decoding to
#since cmd.filelist.files is not encoded, but # be proformed for the manifest output.
#want to write out the manifest as UTF-8/
#This is how one expected the filename to be decoded
fs_enc = sys.getfilesystemencoding() fs_enc = sys.getfilesystemencoding()
filename.decode(fs_enc) filename.decode(fs_enc)
self.assertTrue(filename in cmd.filelist.files) self.assertTrue(filename in cmd.filelist.files)
......
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