diff options
| author | philip_thiem <ptthiem+bitbuket@gmail.com> | 2014-04-25 04:53:11 +0000 |
|---|---|---|
| committer | philip_thiem <ptthiem+bitbuket@gmail.com> | 2014-04-25 04:53:11 +0000 |
| commit | 7192c0fb9e77a8ffa8f54b956cb6775ecb3b1795 (patch) | |
| tree | b96e4427c8db38c3d5c337ceed447a17e7b64f6f /setuptools | |
| parent | b9a53c47f66dbc41e3e9ba8bd29932d1ca6a589f (diff) | |
| download | python-setuptools-git-7192c0fb9e77a8ffa8f54b956cb6775ecb3b1795.tar.gz | |
Improved comment in the latin1 sdist test.
Diffstat (limited to 'setuptools')
| -rw-r--r-- | setuptools/tests/test_sdist.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/setuptools/tests/test_sdist.py b/setuptools/tests/test_sdist.py index 31768e21..5d8340b0 100644 --- a/setuptools/tests/test_sdist.py +++ b/setuptools/tests/test_sdist.py @@ -397,15 +397,12 @@ class TestSdistTest(unittest.TestCase): filename = filename.decode('latin-1') self.assertFalse(filename in cmd.filelist.files) 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 - # file name to utf-8 + # file name to get utf-8 Manifest the latin1 maybe excluded try: - #This seems a bit iffy, but not really what else - #since cmd.filelist.files is not encoded, but - #want to write out the manifest as UTF-8/ - - #This is how one expected the filename to be decoded + # fs_enc should match how one is expect the decoding to + # be proformed for the manifest output. fs_enc = sys.getfilesystemencoding() filename.decode(fs_enc) self.assertTrue(filename in cmd.filelist.files) |
