diff options
author | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-21 13:49:57 (GMT) |
---|---|---|
committer | Tarek Ziadé <ziade.tarek@gmail.com> | 2009-09-21 13:49:57 (GMT) |
commit | 0cfef2c3a44cd3ff9866ea9fe90d821919c3df34 (patch) | |
tree | 3f9d64ddda032a3a7b4895e7b3cf13ba69463b14 /Lib/distutils | |
parent | 99773359843803c54574b6ee6fc1516e7fcde10f (diff) | |
download | cpython-0cfef2c3a44cd3ff9866ea9fe90d821919c3df34.zip cpython-0cfef2c3a44cd3ff9866ea9fe90d821919c3df34.tar.gz cpython-0cfef2c3a44cd3ff9866ea9fe90d821919c3df34.tar.bz2 |
forgot to commit a file in previous commit (r74994, issue #6954)
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/tests/support.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/tests/support.py b/Lib/distutils/tests/support.py index bce0349..3c328cc 100644 --- a/Lib/distutils/tests/support.py +++ b/Lib/distutils/tests/support.py @@ -4,6 +4,7 @@ import shutil import tempfile from distutils import log +from distutils.log import DEBUG, INFO, WARN, ERROR, FATAL from distutils.core import Distribution from test.test_support import EnvironmentVarGuard @@ -25,6 +26,8 @@ class LoggingSilencer(object): super(LoggingSilencer, self).tearDown() def _log(self, level, msg, args): + if level not in (DEBUG, INFO, WARN, ERROR, FATAL): + raise ValueError('%s wrong log level' % str(level)) self.logs.append((level, msg, args)) def get_logs(self, *levels): |