[Zodb-checkins] CVS: ZODB4/src/zodb/zeo/tests - test_zeo.py:1.7.4.1
Barry Warsaw
barry@wooz.org
Mon, 10 Mar 2003 14:40:50 -0500
Update of /cvs-repository/ZODB4/src/zodb/zeo/tests
In directory cvs.zope.org:/tmp/cvs-serv15701
Modified Files:
Tag: opaque-pickles-branch
test_zeo.py
Log Message:
tearDown(): Clean up any transaction that might be left hanging around
=== ZODB4/src/zodb/zeo/tests/test_zeo.py 1.7 => 1.7.4.1 ===
--- ZODB4/src/zodb/zeo/tests/test_zeo.py:1.7 Wed Feb 5 18:28:22 2003
+++ ZODB4/src/zodb/zeo/tests/test_zeo.py Mon Mar 10 14:40:48 2003
@@ -27,6 +27,7 @@
import zodb
from zodb.storage.tests.minpo import MinPO
from zodb.storage.tests.base import zodb_unpickle
+from transaction import get_transaction
# ZODB test mixin classes
@@ -135,6 +136,8 @@
self._storage.registerDB(DummyDB())
def tearDown(self):
+ # Clean up any transaction that might be left hanging around
+ get_transaction().abort()
self._storage.close()
for server in self._servers:
forker.shutdown_zeo_server(server)