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
c9712ebc
Commit
c9712ebc
authored
May 29, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed #6131: test_modulefinder leaked when run after test_distutils
parent
3917b17a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
10 deletions
+8
-10
tests/test_bdist_dumb.py
tests/test_bdist_dumb.py
+2
-4
tests/test_dir_util.py
tests/test_dir_util.py
+2
-2
tests/test_file_util.py
tests/test_file_util.py
+2
-2
tests/test_register.py
tests/test_register.py
+2
-2
No files found.
tests/test_bdist_dumb.py
View file @
c9712ebc
...
...
@@ -22,16 +22,14 @@ class BuildDumbTestCase(support.TempdirManager,
unittest
.
TestCase
):
def
setUp
(
self
):
support
.
TempdirManager
.
setUp
(
self
)
support
.
LoggingSilencer
.
setUp
(
self
)
super
(
BuildDumbTestCase
,
self
).
setUp
()
self
.
old_location
=
os
.
getcwd
()
self
.
old_sys_argv
=
sys
.
argv
[:]
def
tearDown
(
self
):
os
.
chdir
(
self
.
old_location
)
sys
.
argv
=
self
.
old_sys_argv
[:]
support
.
LoggingSilencer
.
tearDown
(
self
)
support
.
TempdirManager
.
tearDown
(
self
)
super
(
BuildDumbTestCase
,
self
).
tearDown
()
def
test_simple_built
(
self
):
...
...
tests/test_dir_util.py
View file @
c9712ebc
...
...
@@ -18,7 +18,7 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
self
.
_logs
.
append
(
msg
)
def
setUp
(
self
):
sup
port
.
TempdirManager
.
setUp
(
self
)
sup
er
(
DirUtilTestCase
,
self
).
setUp
(
)
self
.
_logs
=
[]
tmp_dir
=
self
.
mkdtemp
()
self
.
root_target
=
os
.
path
.
join
(
tmp_dir
,
'deep'
)
...
...
@@ -29,7 +29,7 @@ class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
def
tearDown
(
self
):
log
.
info
=
self
.
old_log
sup
port
.
TempdirManager
.
tearDown
(
self
)
sup
er
(
DirUtilTestCase
,
self
).
tearDown
(
)
def
test_mkpath_remove_tree_verbosity
(
self
):
...
...
tests/test_file_util.py
View file @
c9712ebc
...
...
@@ -16,7 +16,7 @@ class FileUtilTestCase(support.TempdirManager, unittest.TestCase):
self
.
_logs
.
append
(
msg
)
def
setUp
(
self
):
sup
port
.
TempdirManager
.
setUp
(
self
)
sup
er
(
FileUtilTestCase
,
self
).
setUp
(
)
self
.
_logs
=
[]
self
.
old_log
=
log
.
info
log
.
info
=
self
.
_log
...
...
@@ -27,7 +27,7 @@ class FileUtilTestCase(support.TempdirManager, unittest.TestCase):
def
tearDown
(
self
):
log
.
info
=
self
.
old_log
sup
port
.
TempdirManager
.
tearDown
(
self
)
sup
er
(
FileUtilTestCase
,
self
).
tearDown
(
)
def
test_move_file_verbosity
(
self
):
f
=
open
(
self
.
source
,
'w'
)
...
...
tests/test_register.py
View file @
c9712ebc
...
...
@@ -66,7 +66,7 @@ class FakeOpener(object):
class
RegisterTestCase
(
PyPIRCCommandTestCase
):
def
setUp
(
self
):
PyPIRCCommandTestCase
.
setUp
(
self
)
super
(
RegisterTestCase
,
self
).
setUp
(
)
# patching the password prompt
self
.
_old_getpass
=
getpass
.
getpass
def
_getpass
(
prompt
):
...
...
@@ -78,7 +78,7 @@ class RegisterTestCase(PyPIRCCommandTestCase):
def
tearDown
(
self
):
getpass
.
getpass
=
self
.
_old_getpass
urllib2
.
build_opener
=
self
.
old_opener
PyPIRCCommandTestCase
.
tearDown
(
self
)
super
(
RegisterTestCase
,
self
).
tearDown
(
)
def
_get_cmd
(
self
,
metadata
=
None
):
if
metadata
is
None
:
...
...
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