Commits

Tarek Ziadé committed 61f5a33

forgot to commit a file in previous commit (r74994, issue #6954)

  • Participants
  • Parent commits 9ffe73d

Comments (0)

Files changed (1)

File tests/support.py

 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
 
         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):