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
abe31ce0
Commit
abe31ce0
authored
Jul 13, 2017
by
Jason R. Coombs
Committed by
GitHub
Jul 13, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1070 from benoit-pierre/tests_releated_fixes_and_tweaks
Tests releated fixes and tweaks
parents
cf3e1b29
100b7345
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
6 deletions
+8
-6
.travis.yml
.travis.yml
+2
-2
pytest.ini
pytest.ini
+1
-1
setuptools/tests/__init__.py
setuptools/tests/__init__.py
+2
-2
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+2
-0
tox.ini
tox.ini
+1
-1
No files found.
.travis.yml
View file @
abe31ce0
...
...
@@ -11,9 +11,9 @@ python:
matrix
:
include
:
-
python
:
3.6
env
:
L
C_ALL=C LC_CTYPE
=C
env
:
L
ANG
=C
-
python
:
2.7
env
:
L
C_ALL=C LC_CTYPE
=C
env
:
L
ANG
=C
script
:
# need tox to get started
-
pip install tox
...
...
pytest.ini
View file @
abe31ce0
[pytest]
addopts
=
--doctest-modules --ignore release.py --ignore setuptools/lib2to3_ex.py --ignore tests/manual_test.py --ignore tests/test_pypi.py --ignore tests/shlib_test --doctest-glob=pkg_resources/api_tests.txt --ignore scripts/upload-old-releases-as-zip.py --ignore pavement.py --ignore setuptools/tests/mod_with_constant.py
addopts
=
--doctest-modules --ignore release.py --ignore setuptools/lib2to3_ex.py --ignore tests/manual_test.py --ignore tests/test_pypi.py --ignore tests/shlib_test --doctest-glob=pkg_resources/api_tests.txt --ignore scripts/upload-old-releases-as-zip.py --ignore pavement.py --ignore setuptools/tests/mod_with_constant.py
-rsxX
norecursedirs
=
dist build *.egg setuptools/extern pkg_resources/extern .*
flake8-ignore
=
setuptools/site-patch.py
F821
...
...
setuptools/tests/__init__.py
View file @
abe31ce0
"""Tests for the 'setuptools' package"""
import
locale
import
sys
import
os
import
distutils.core
...
...
@@ -16,8 +17,7 @@ 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"
)
is_ascii
=
locale
.
getpreferredencoding
()
==
'ANSI_X3.4-1968'
fail_on_ascii
=
pytest
.
mark
.
xfail
(
is_ascii
,
reason
=
"Test fails in this locale"
)
...
...
setuptools/tests/test_easy_install.py
View file @
abe31ce0
...
...
@@ -30,6 +30,7 @@ from setuptools.dist import Distribution
from
pkg_resources
import
normalize_path
,
working_set
from
pkg_resources
import
Distribution
as
PRDistribution
import
setuptools.tests.server
from
setuptools.tests
import
fail_on_ascii
import
pkg_resources
from
.py26compat
import
tarfile_open
...
...
@@ -166,6 +167,7 @@ class TestEasyInstallTest:
sdist_zip
.
close
()
return
str
(
sdist
)
@
fail_on_ascii
def
test_unicode_filename_in_sdist
(
self
,
sdist_unicode
,
tmpdir
,
monkeypatch
):
"""
The install command should execute correctly even if
...
...
tox.ini
View file @
abe31ce0
...
...
@@ -7,5 +7,5 @@
[testenv]
deps
=
-rtests/requirements.txt
passenv
=
APPDATA USERPROFILE HOMEDRIVE HOMEPATH windir APPVEYOR
commands
=
py.test {posargs
:-rsx
}
commands
=
py.test {posargs}
usedevelop
=
True
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