mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
make sure distutils logging is shut off in tests to avoid spurious output
This commit is contained in:
parent
1fa649f2d5
commit
edcac8f416
5 changed files with 25 additions and 3 deletions
|
@ -50,7 +50,10 @@ error = _global_log.error
|
|||
fatal = _global_log.fatal
|
||||
|
||||
def set_threshold(level):
|
||||
# return the old threshold for use from tests
|
||||
old = _global_log.threshold
|
||||
_global_log.threshold = level
|
||||
return old
|
||||
|
||||
def set_verbosity(v):
|
||||
if v <= 0:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue