Commit 62447db4 authored by Jeremy Hylton's avatar Jeremy Hylton

Fix test to match changed warning in setLocalTransaction().

parent 367772af
......@@ -242,7 +242,9 @@ class ZODBTests(unittest.TestCase):
self.assertEqual(r1['item'], 2)
self.assertEqual(r2['item'], 2)
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:
conn1.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