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
1535176a
Commit
1535176a
authored
May 17, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Plain Diff
Merge changes from Pull Request 50
parents
98252c96
7192c0fb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
9 deletions
+17
-9
.hgignore
.hgignore
+1
-2
setuptools/tests/test_sdist.py
setuptools/tests/test_sdist.py
+16
-7
No files found.
.hgignore
View file @
1535176a
...
@@ -13,5 +13,4 @@ include
...
@@ -13,5 +13,4 @@ include
\.Python
\.Python
*.swp
*.swp
CHANGES (links).txt
CHANGES (links).txt
.git2
.git*
.gitignore
setuptools/tests/test_sdist.py
View file @
1535176a
...
@@ -156,10 +156,11 @@ class TestSdistTest(unittest.TestCase):
...
@@ -156,10 +156,11 @@ class TestSdistTest(unittest.TestCase):
self
.
fail
(
e
)
self
.
fail
(
e
)
# The manifest should contain the UTF-8 filename
# The manifest should contain the UTF-8 filename
if
sys
.
version_info
>=
(
3
,):
if
sys
.
version_info
<
(
3
,):
self
.
assertTrue
(
posix
(
filename
)
in
u_contents
)
fs_enc
=
sys
.
getfilesystemencoding
()
else
:
filename
=
filename
.
decode
(
fs_enc
)
self
.
assertTrue
(
posix
(
filename
)
in
contents
)
self
.
assertTrue
(
posix
(
filename
)
in
u_contents
)
# Python 3 only
# Python 3 only
if
sys
.
version_info
>=
(
3
,):
if
sys
.
version_info
>=
(
3
,):
...
@@ -401,9 +402,17 @@ class TestSdistTest(unittest.TestCase):
...
@@ -401,9 +402,17 @@ 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
:
# No conversion takes place under Python 2 and the file
# Under Python 2 there seems to be no decoded string in the
# is included. We shall keep it that way for BBB.
# filelist. However, due to decode and encoding of the
self
.
assertTrue
(
filename
in
cmd
.
filelist
.
files
)
# file name to get utf-8 Manifest the latin1 maybe excluded
try
:
# 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
)
except
UnicodeDecodeError
:
self
.
assertFalse
(
filename
in
cmd
.
filelist
.
files
)
class
TestDummyOutput
(
environment
.
ZippedEnvironment
):
class
TestDummyOutput
(
environment
.
ZippedEnvironment
):
...
...
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