Commit cd01c4a6 authored by Jeremy Hylton's avatar Jeremy Hylton

Fix test to match changed warning in setLocalTransaction().

parent bddcb493
...@@ -242,7 +242,9 @@ class ZODBTests(unittest.TestCase): ...@@ -242,7 +242,9 @@ class ZODBTests(unittest.TestCase):
self.assertEqual(r1['item'], 2) self.assertEqual(r1['item'], 2)
self.assertEqual(r2['item'], 2) self.assertEqual(r2['item'], 2)
for msg, obj, filename, lineno in hook.warnings: for msg, obj, filename, lineno in hook.warnings:
self.assert_(msg.startswith("getTransaction() is deprecated.")) self.assert_(
msg.startswith("setLocalTransaction() is deprecated.") or
msg.startswith("getTransaction() is deprecated."))
finally: finally:
conn1.close() conn1.close()
conn2.close() conn2.close()
......
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