mirror of
https://github.com/python/cpython.git
synced 2025-10-22 17:33:55 +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 @@ def fatal(self, msg, *args):
|
|||
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