[Zope3-checkins] SVN: Zope3/trunk/src/zodbcode/tests/test_class.py Changed _load_path to use a separate transaction manager rather than

Jim Fulton jim at zope.com
Sat May 12 12:01:09 EDT 2007


Log message for revision 75707:
  Changed _load_path to use a separate transaction manager rather than
  the no-longer supports synch argument to open to avoid effects from
  the thread-global transaction manager.
  

Changed:
  U   Zope3/trunk/src/zodbcode/tests/test_class.py

-=-
Modified: Zope3/trunk/src/zodbcode/tests/test_class.py
===================================================================
--- Zope3/trunk/src/zodbcode/tests/test_class.py	2007-05-12 15:11:31 UTC (rev 75706)
+++ Zope3/trunk/src/zodbcode/tests/test_class.py	2007-05-12 16:01:08 UTC (rev 75707)
@@ -30,7 +30,8 @@
 
     def _load_path(self, path):
         # Load an object from a new connection given a database path.
-        root = self.db.open(synch=False).root()
+        tm = transaction.TransactionManager()
+        root = self.db.open(transaction_manager=tm).root()
         obj = root
         for part in path.split("."):
             try:



More information about the Zope3-Checkins mailing list