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
0535891e
Commit
0535891e
authored
Jun 24, 2016
by
Berker Peksag
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 3.5
parents
92b641b2
90d7e0e1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
tests/test_config.py
tests/test_config.py
+6
-3
tests/test_register.py
tests/test_register.py
+2
-2
tests/test_sdist.py
tests/test_sdist.py
+2
-2
tests/test_upload.py
tests/test_upload.py
+2
-2
No files found.
tests/test_config.py
View file @
0535891e
...
...
@@ -50,14 +50,14 @@ password:xxx
"""
class
PyPIRCCommandTestCase
(
support
.
TempdirManager
,
class
Base
PyPIRCCommandTestCase
(
support
.
TempdirManager
,
support
.
LoggingSilencer
,
support
.
EnvironGuard
,
unittest
.
TestCase
):
def
setUp
(
self
):
"""Patches the environment."""
super
(
PyPIRCCommandTestCase
,
self
).
setUp
()
super
(
Base
PyPIRCCommandTestCase
,
self
).
setUp
()
self
.
tmp_dir
=
self
.
mkdtemp
()
os
.
environ
[
'HOME'
]
=
self
.
tmp_dir
self
.
rc
=
os
.
path
.
join
(
self
.
tmp_dir
,
'.pypirc'
)
...
...
@@ -76,7 +76,10 @@ class PyPIRCCommandTestCase(support.TempdirManager,
def
tearDown
(
self
):
"""Removes the patch."""
set_threshold
(
self
.
old_threshold
)
super
(
PyPIRCCommandTestCase
,
self
).
tearDown
()
super
(
BasePyPIRCCommandTestCase
,
self
).
tearDown
()
class
PyPIRCCommandTestCase
(
BasePyPIRCCommandTestCase
):
def
test_server_registration
(
self
):
# This test makes sure PyPIRCCommand knows how to:
...
...
tests/test_register.py
View file @
0535891e
...
...
@@ -12,7 +12,7 @@ from distutils.command.register import register
from
distutils.errors
import
DistutilsSetupError
from
distutils.log
import
INFO
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
Base
PyPIRCCommandTestCase
try
:
import
docutils
...
...
@@ -72,7 +72,7 @@ class FakeOpener(object):
}.
get
(
name
.
lower
(),
default
)
class
RegisterTestCase
(
PyPIRCCommandTestCase
):
class
RegisterTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
super
(
RegisterTestCase
,
self
).
setUp
()
...
...
tests/test_sdist.py
View file @
0535891e
...
...
@@ -23,7 +23,7 @@ except ImportError:
from
distutils.command.sdist
import
sdist
,
show_formats
from
distutils.core
import
Distribution
from
distutils.tests.test_config
import
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
Base
PyPIRCCommandTestCase
from
distutils.errors
import
DistutilsOptionError
from
distutils.spawn
import
find_executable
from
distutils.log
import
WARN
...
...
@@ -52,7 +52,7 @@ somecode%(sep)sdoc.dat
somecode%(sep)sdoc.txt
"""
class
SDistTestCase
(
PyPIRCCommandTestCase
):
class
SDistTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
# PyPIRCCommandTestCase creates a temp dir already
...
...
tests/test_upload.py
View file @
0535891e
...
...
@@ -12,7 +12,7 @@ from distutils.core import Distribution
from
distutils.errors
import
DistutilsError
from
distutils.log
import
ERROR
,
INFO
from
distutils.tests.test_config
import
PYPIRC
,
PyPIRCCommandTestCase
from
distutils.tests.test_config
import
PYPIRC
,
Base
PyPIRCCommandTestCase
PYPIRC_LONG_PASSWORD
=
"""
\
[distutils]
...
...
@@ -66,7 +66,7 @@ class FakeOpen(object):
return
self
.
code
class
uploadTestCase
(
PyPIRCCommandTestCase
):
class
uploadTestCase
(
Base
PyPIRCCommandTestCase
):
def
setUp
(
self
):
super
(
uploadTestCase
,
self
).
setUp
()
...
...
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