[Zodb-checkins] CVS: ZODB/src/ZODB/tests - util.py:1.1.2.2
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
util.py
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 1.1.2.1 => 1.1.2.2 ===
--- ZODB/src/ZODB/tests/util.py:1.1.2.1 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
+try:
+ 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 Zodb-checkins
mailing list