[py-svn] r64263 - py/trunk/py/log

hpk at codespeak.net hpk at codespeak.net
Fri Apr 17 13:40:13 CEST 2009


Author: hpk
Date: Fri Apr 17 13:40:13 2009
New Revision: 64263

Modified:
   py/trunk/py/log/consumer.py
Log:
fix failing test on windows


Modified: py/trunk/py/log/consumer.py
==============================================================================
--- py/trunk/py/log/consumer.py	(original)
+++ py/trunk/py/log/consumer.py	Fri Apr 17 13:40:13 2009
@@ -49,7 +49,7 @@
     for priority in "LOG_EMERG LOG_ALERT LOG_CRIT LOG_ERR LOG_WARNING LOG_NOTICE LOG_INFO LOG_DEBUG".split():
         try:
             exec("%s = py.std.syslog.%s" % (priority, priority))
-        except AttributeError:
+        except ImportError:
             pass
     
     def __init__(self, priority = None):



More information about the pytest-commit mailing list