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
4dcbe9cd
Commit
4dcbe9cd
authored
Feb 09, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused import and excess whitespace.
parent
871d5104
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
39 deletions
+1
-39
setuptools/command/test.py
setuptools/command/test.py
+1
-39
No files found.
setuptools/command/test.py
View file @
4dcbe9cd
...
...
@@ -3,7 +3,7 @@ from distutils.errors import DistutilsOptionError
import
sys
from
pkg_resources
import
*
from
pkg_resources
import
_namespace_packages
from
unittest
import
TestLoader
,
main
from
unittest
import
TestLoader
class
ScanningLoader
(
TestLoader
):
...
...
@@ -57,7 +57,6 @@ class test(Command):
self
.
test_module
=
None
self
.
test_loader
=
None
def
finalize_options
(
self
):
if
self
.
test_suite
is
None
:
...
...
@@ -79,8 +78,6 @@ class test(Command):
if
self
.
test_loader
is
None
:
self
.
test_loader
=
"setuptools.command.test:ScanningLoader"
def
with_project_on_sys_path
(
self
,
func
):
if
sys
.
version_info
>=
(
3
,)
and
getattr
(
self
.
distribution
,
'use_2to3'
,
False
):
# If we run 2to3 we can not do this inplace:
...
...
@@ -122,7 +119,6 @@ class test(Command):
sys
.
modules
.
update
(
old_modules
)
working_set
.
__init__
()
def
run
(
self
):
if
self
.
distribution
.
install_requires
:
self
.
distribution
.
fetch_build_eggs
(
self
.
distribution
.
install_requires
)
...
...
@@ -137,7 +133,6 @@ class test(Command):
self
.
announce
(
'running "unittest %s"'
%
cmd
)
self
.
with_project_on_sys_path
(
self
.
run_tests
)
def
run_tests
(
self
):
import
unittest
...
...
@@ -163,36 +158,3 @@ class test(Command):
None
,
None
,
[
unittest
.
__file__
]
+
self
.
test_args
,
testLoader
=
cks
)
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