commit | edcac8f416ebe4561bbc0e91c46a3bfc5457f73c | [log] [tgz] |
---|---|---|
author | Fred Drake <fdrake@acm.org> | Tue Aug 03 18:53:07 2004 +0000 |
committer | Fred Drake <fdrake@acm.org> | Tue Aug 03 18:53:07 2004 +0000 |
tree | df4fbed36f3dfc843a735183c440453be3eb6a05 | |
parent | 1fa649f2d5d4a63105577888830276a6dc4771b5 [diff] [blame] |
make sure distutils logging is shut off in tests to avoid spurious output
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 @@ 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: