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
142d8815
Commit
142d8815
authored
Sep 21, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#6954: Fixed crash when using DISTUTILS_DEBUG flag in Distutils.
parent
06106987
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
dist.py
dist.py
+1
-1
log.py
log.py
+3
-0
tests/test_dist.py
tests/test_dist.py
+7
-0
No files found.
dist.py
View file @
142d8815
...
...
@@ -359,7 +359,7 @@ Common commands: (see '--help-commands' for more)
parser
=
ConfigParser
()
for
filename
in
filenames
:
if
DEBUG
:
self
.
announce
(
" reading
"
,
filename
)
self
.
announce
(
" reading
%s"
%
filename
)
parser
.
read
(
filename
)
for
section
in
parser
.
sections
():
options
=
parser
.
options
(
section
)
...
...
log.py
View file @
142d8815
...
...
@@ -17,6 +17,9 @@ class Log:
self
.
threshold
=
threshold
def
_log
(
self
,
level
,
msg
,
args
):
if
level
not
in
(
DEBUG
,
INFO
,
WARN
,
ERROR
,
FATAL
):
raise
ValueError
(
'%s wrong log level'
%
str
(
level
))
if
level
>=
self
.
threshold
:
if
args
:
msg
=
msg
%
args
...
...
tests/test_dist.py
View file @
142d8815
...
...
@@ -200,6 +200,13 @@ class DistributionTestCase(support.TempdirManager,
self
.
assertEquals
(
cmds
,
[
'distutils.command'
,
'one'
,
'two'
])
def
test_announce
(
self
):
# make sure the level is known
dist
=
Distribution
()
args
=
(
'ok'
,)
kwargs
=
{
'level'
:
'ok2'
}
self
.
assertRaises
(
ValueError
,
dist
.
announce
,
args
,
kwargs
)
class
MetadataTestCase
(
support
.
TempdirManager
,
support
.
EnvironGuard
,
unittest
.
TestCase
):
...
...
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