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
efededd6
Commit
efededd6
authored
Dec 01, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expect failures on these tests due to ASCII
parent
81c103f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
setuptools/tests/__init__.py
setuptools/tests/__init__.py
+4
-0
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+1
-3
setuptools/tests/test_sdist.py
setuptools/tests/test_sdist.py
+5
-3
No files found.
setuptools/tests/__init__.py
View file @
efededd6
...
...
@@ -16,6 +16,10 @@ import setuptools.depends as dep
from
setuptools
import
Feature
from
setuptools.depends
import
Require
c_type
=
os
.
environ
.
get
(
"LC_CTYPE"
,
os
.
environ
.
get
(
"LC_ALL"
))
is_ascii
=
c_type
in
(
"C"
,
"POSIX"
)
fail_on_ascii
=
pytest
.
mark
.
xfail
(
is_ascii
,
"Test fails in this locale"
)
def
makeSetup
(
**
args
):
"""Return distribution from 'setup(**args)', without executing commands"""
...
...
setuptools/tests/test_easy_install.py
View file @
efededd6
...
...
@@ -35,7 +35,7 @@ import setuptools.tests.server
import
pkg_resources
from
.py26compat
import
tarfile_open
from
.
import
contexts
from
.
import
contexts
,
is_ascii
from
.textwrap
import
DALS
...
...
@@ -430,8 +430,6 @@ class TestScriptHeader:
expected
=
'#!"%s"
\
n
'
%
self
.
exe_with_spaces
assert
actual
==
expected
c_type
=
os
.
environ
.
get
(
"LC_CTYPE"
,
os
.
environ
.
get
(
"LC_ALL"
))
is_ascii
=
c_type
in
(
"C"
,
"POSIX"
)
@
pytest
.
mark
.
xfail
(
compat
.
PY3
and
is_ascii
,
reason
=
"Test fails in this locale on Python 3"
...
...
setuptools/tests/test_sdist.py
View file @
efededd6
...
...
@@ -16,6 +16,8 @@ from setuptools.compat import StringIO, unicode, PY3, PY2
from
setuptools.command.sdist
import
sdist
from
setuptools.command.egg_info
import
manifest_maker
from
setuptools.dist
import
Distribution
from
setuptools.tests
import
fail_on_ascii
SETUP_ATTRS
=
{
'name'
:
'sdist_test'
,
...
...
@@ -147,6 +149,7 @@ class TestSdistTest:
assert
'setup.py'
not
in
manifest
,
manifest
assert
'setup.cfg'
not
in
manifest
,
manifest
@
fail_on_ascii
def
test_manifest_is_written_with_utf8_encoding
(
self
):
# Test for #303.
dist
=
Distribution
(
SETUP_ATTRS
)
...
...
@@ -256,6 +259,7 @@ class TestSdistTest:
# The filelist should have been updated as well
assert
u_filename
not
in
mm
.
filelist
.
files
@
fail_on_ascii
def
test_manifest_is_read_with_utf8_encoding
(
self
):
# Test for #303.
dist
=
Distribution
(
SETUP_ATTRS
)
...
...
@@ -320,9 +324,7 @@ class TestSdistTest:
filename
=
filename
.
decode
(
'latin-1'
)
assert
filename
not
in
cmd
.
filelist
.
files
@
pytest
.
mark
.
skipif
(
PY3
and
locale
.
getpreferredencoding
()
!=
'UTF-8'
,
reason
=
'Unittest fails if locale is not utf-8 but the manifests is '
'recorded correctly'
)
@
fail_on_ascii
def
test_sdist_with_utf8_encoded_filename
(
self
):
# Test for #303.
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