From edcac8f416ebe4561bbc0e91c46a3bfc5457f73c Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Tue, 3 Aug 2004 18:53:07 +0000 Subject: make sure distutils logging is shut off in tests to avoid spurious output --- Lib/distutils/log.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Lib/distutils/log.py') diff --git a/Lib/distutils/log.py b/Lib/distutils/log.py index 024e7c28de..bf26302fcc 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: -- cgit v1.2.1