Commit e95d0635 authored by Jim Fulton's avatar Jim Fulton

Updated a test to work with or without Python optimization.

parent 16bb498c
......@@ -486,7 +486,10 @@ class ZRPCConnectionTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
# logged
self._storage._connection.handle_request('foo',0,'history',(1,2,3,4))
# test logging
level,message,kw = log[1]
if __debug__:
level,message,kw = log[1]
else:
level,message,kw = log[0]
self.assertEqual(level,logging.ERROR)
self.failUnless(message.endswith(
') history() raised exception: history() takes at'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment