[Checkins] SVN: ZConfig/branches/matt-python-2.6/ZConfig/components/logger/tests/test_logger.py Changed logging.LogHandler call to incorporate new paramater expected.
matt@zope.com
cvs-admin at zope.org
Fri Nov 21 15:32:17 EST 2008
Log message for revision 93249:
Changed logging.LogHandler call to incorporate new paramater expected.
Changed:
U ZConfig/branches/matt-python-2.6/ZConfig/components/logger/tests/test_logger.py
-=-
Modified: ZConfig/branches/matt-python-2.6/ZConfig/components/logger/tests/test_logger.py
===================================================================
--- ZConfig/branches/matt-python-2.6/ZConfig/components/logger/tests/test_logger.py 2008-11-21 20:12:08 UTC (rev 93248)
+++ ZConfig/branches/matt-python-2.6/ZConfig/components/logger/tests/test_logger.py 2008-11-21 20:32:17 UTC (rev 93249)
@@ -369,9 +369,14 @@
def test_filehandler_reopen(self):
def mkrecord(msg):
- return logging.LogRecord(
- "foo.bar", logging.ERROR, __file__, 42, msg, (), ())
+ if sys.version_info[:2] == (2, 5):
+ return logging.LogRecord(
+ "foo.bar", logging.ERROR, __file__, 42, msg, (), (), ())
+ else:
+ return logging.LogRecord(
+ "foo.bar", logging.ERROR, __file__, 42, msg, (), ())
+
# This goes through the reopening operation *twice* to make
# sure that we don't lose our handle on the handler the first
# time around.
More information about the Checkins
mailing list