[Python-checkins] r74997 - python/trunk/Lib/distutils/tests/support.py
tarek.ziade
python-checkins at python.org
Mon Sep 21 15:49:57 CEST 2009
Author: tarek.ziade
Date: Mon Sep 21 15:49:57 2009
New Revision: 74997
Log:
forgot to commit a file in previous commit (r74994, issue #6954)
Modified:
python/trunk/Lib/distutils/tests/support.py
Modified: python/trunk/Lib/distutils/tests/support.py
==============================================================================
--- python/trunk/Lib/distutils/tests/support.py (original)
+++ python/trunk/Lib/distutils/tests/support.py Mon Sep 21 15:49:57 2009
@@ -4,6 +4,7 @@
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 @@
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):
More information about the Python-checkins
mailing list