[Zope3-checkins] CVS: ZODB/src/ZODB/tests - testZODB.py:1.28

Jeremy Hylton jeremy at zope.com
Fri Apr 16 10:43:42 EDT 2004


Update of /cvs-repository/ZODB/src/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv29960

Modified Files:
	testZODB.py 
Log Message:
Fix test to match changed warning in setLocalTransaction().


=== ZODB/src/ZODB/tests/testZODB.py 1.27 => 1.28 ===
--- ZODB/src/ZODB/tests/testZODB.py:1.27	Thu Apr 15 14:10:59 2004
+++ ZODB/src/ZODB/tests/testZODB.py	Fri Apr 16 10:43:41 2004
@@ -242,7 +242,9 @@
             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()




More information about the Zope3-Checkins mailing list