[Zodb-checkins] CVS: ZODB/src/ZODB/tests - testmvcc.py:1.13

Jeremy Hylton jeremy at zope.com
Fri Apr 16 10:29:32 EDT 2004


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

Modified Files:
	testmvcc.py 
Log Message:
use transaction manager explicitly


=== ZODB/src/ZODB/tests/testmvcc.py 1.12 => 1.13 ===
--- ZODB/src/ZODB/tests/testmvcc.py:1.12	Wed Mar 31 22:56:57 2004
+++ ZODB/src/ZODB/tests/testmvcc.py	Fri Apr 16 10:29:31 2004
@@ -190,7 +190,7 @@
 >>> r2["a"].value
 0
 >>> r2["b"].value = 1
->>> cn2.getTransaction().commit()
+>>> tm2.get().commit()
 
 >>> r1["b"].value
 0
@@ -208,7 +208,7 @@
 ...     tm1.get().commit()
 ...     cn2.sync()
 ...     r2["b"].value = 1
-...     cn2.getTransaction().commit()
+...     tm2.get().commit()
 
 >>> testit()
 >>> r1["b"]._p_state  # 0 means UPTODATE, although note it's an older revision




More information about the Zodb-checkins mailing list