Commit 1c00a900 authored by Jason R. Coombs's avatar Jason R. Coombs

Collapse encoding detection

parent b8936cee
...@@ -374,10 +374,9 @@ class TestSdistTest: ...@@ -374,10 +374,9 @@ class TestSdistTest:
# Latin-1 is similar to Windows-1252 however # Latin-1 is similar to Windows-1252 however
# on mbcs filesys it is not in latin-1 encoding # on mbcs filesys it is not in latin-1 encoding
fs_enc = sys.getfilesystemencoding() fs_enc = sys.getfilesystemencoding()
if fs_enc == 'mbcs': if fs_enc != 'mbcs':
filename = filename.decode('mbcs') fs_enc = 'latin-1'
else: filename = filename.decode(fs_enc)
filename = filename.decode('latin-1')
assert filename in cmd.filelist.files assert filename in cmd.filelist.files
else: else:
......
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