Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
7192c0fb
Commit
7192c0fb
authored
Apr 25, 2014
by
philip_thiem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improved comment in the latin1 sdist test.
parent
b9a53c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
setuptools/tests/test_sdist.py
setuptools/tests/test_sdist.py
+4
-7
No files found.
setuptools/tests/test_sdist.py
View file @
7192c0fb
...
...
@@ -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 decod
ing of
the
# Under Python 2 there seems to be no decod
ed 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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment