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
b620521f
Commit
b620521f
authored
Sep 21, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forgot to commit a file in previous commit (r74994, issue #6954)
parent
142d8815
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
tests/support.py
tests/support.py
+3
-0
No files found.
tests/support.py
View file @
b620521f
...
...
@@ -4,6 +4,7 @@ import shutil
import
tempfile
from
distutils
import
log
from
distutils.log
import
DEBUG
,
INFO
,
WARN
,
ERROR
,
FATAL
from
distutils.core
import
Distribution
from
test.test_support
import
EnvironmentVarGuard
...
...
@@ -25,6 +26,8 @@ class LoggingSilencer(object):
super
(
LoggingSilencer
,
self
).
tearDown
()
def
_log
(
self
,
level
,
msg
,
args
):
if
level
not
in
(
DEBUG
,
INFO
,
WARN
,
ERROR
,
FATAL
):
raise
ValueError
(
'%s wrong log level'
%
str
(
level
))
self
.
logs
.
append
((
level
,
msg
,
args
))
def
get_logs
(
self
,
*
levels
):
...
...
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