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
a65b6ea0
Commit
a65b6ea0
authored
Apr 11, 2013
by
Toshio Kuratomi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip test when file system encoding is not suitable. Fixes #55 and Distribute #363.
parent
49ce8061
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
CHANGES.txt
CHANGES.txt
+2
-0
setuptools/tests/test_sdist.py
setuptools/tests/test_sdist.py
+4
-1
No files found.
CHANGES.txt
View file @
a65b6ea0
...
@@ -10,6 +10,8 @@ CHANGES
...
@@ -10,6 +10,8 @@ CHANGES
launcher for 'develop' installs).
launcher for 'develop' installs).
* ``ez_setup.py`` now ensures partial downloads are cleaned up following
* ``ez_setup.py`` now ensures partial downloads are cleaned up following
a failed download.
a failed download.
* Distribute #363 and Issue #55: Skip an sdist test that fails on locales
other than UTF-8.
-----
-----
1.1.6
1.1.6
...
...
setuptools/tests/test_sdist.py
View file @
a65b6ea0
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
"""sdist tests"""
"""sdist tests"""
import
locale
import
os
import
os
import
shutil
import
shutil
import
sys
import
sys
...
@@ -10,6 +10,7 @@ import unittest
...
@@ -10,6 +10,7 @@ import unittest
import
unicodedata
import
unicodedata
from
setuptools.compat
import
StringIO
,
unicode
from
setuptools.compat
import
StringIO
,
unicode
from
setuptools.tests.py26compat
import
skipIf
from
setuptools.command.sdist
import
sdist
from
setuptools.command.sdist
import
sdist
from
setuptools.command.egg_info
import
manifest_maker
from
setuptools.command.egg_info
import
manifest_maker
from
setuptools.dist
import
Distribution
from
setuptools.dist
import
Distribution
...
@@ -318,6 +319,8 @@ class TestSdistTest(unittest.TestCase):
...
@@ -318,6 +319,8 @@ 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
)
@
skipIf
(
sys
.
version_info
>=
(
3
,)
and
locale
.
getpreferredencoding
()
!=
'UTF-8'
,
'Unittest fails if locale is not utf-8 but the manifests is recorded correctly'
)
def
test_sdist_with_utf8_encoded_filename
(
self
):
def
test_sdist_with_utf8_encoded_filename
(
self
):
# Test for #303.
# Test for #303.
dist
=
Distribution
(
SETUP_ATTRS
)
dist
=
Distribution
(
SETUP_ATTRS
)
...
...
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