diff options
author | Fred Drake <fdrake@acm.org> | 2004-08-03 18:53:07 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2004-08-03 18:53:07 (GMT) |
commit | edcac8f416ebe4561bbc0e91c46a3bfc5457f73c (patch) | |
tree | df4fbed36f3dfc843a735183c440453be3eb6a05 /Lib/distutils/log.py | |
parent | 1fa649f2d5d4a63105577888830276a6dc4771b5 (diff) | |
download | cpython-edcac8f416ebe4561bbc0e91c46a3bfc5457f73c.zip cpython-edcac8f416ebe4561bbc0e91c46a3bfc5457f73c.tar.gz cpython-edcac8f416ebe4561bbc0e91c46a3bfc5457f73c.tar.bz2 |
make sure distutils logging is shut off in tests to avoid spurious output
Diffstat (limited to 'Lib/distutils/log.py')
-rw-r--r-- | Lib/distutils/log.py | 3 |
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: |