[Zope-Checkins] CVS: ZODB/src/ZODB/tests - util.py:

Jeremy Hylton jeremy at zope.com
Thu Feb 12 23:12:37 EST 2004

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

Modified Files:
      Tag: zope3-zodb3-devel-branch
Log Message:
There is no transaction package in standalone ZODB.

XXX Perhaps these lines just need to go away.

=== ZODB/src/ZODB/tests/util.py => ===
--- ZODB/src/ZODB/tests/util.py:	Fri Jan 16 10:43:24 2004
+++ ZODB/src/ZODB/tests/util.py	Thu Feb 12 23:12:06 2004
@@ -20,7 +20,10 @@
 import persistent
 from ZODB.DemoStorage import DemoStorage
 from ZODB.DB import DB as _DB
-from transaction import get_transaction
+    from transaction import get_transaction
+except ImportError:
+    pass # else assume ZODB will install it as a builtin
 def DB(name='Test'):
     return _DB(DemoStorage(name))

More information about the Zope-Checkins mailing list