summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/log.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/distutils/log.py')
-rw-r--r--Lib/distutils/log.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/log.py b/Lib/distutils/log.py
index 024e7c2..bf26302 100644
--- a/Lib/distutils/log.py
+++ b/Lib/distutils/log.py
@@ -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: