[Zope3-checkins] CVS: Zope3/src/zodb/tests - test_connection.py:1.6

Albertas Agejevas alga at pov.lt
Tue Oct 7 12:00:43 EDT 2003


Update of /cvs-repository/Zope3/src/zodb/tests
In directory cvs.zope.org:/tmp/cvs-serv4701/src/zodb/tests

Modified Files:
	test_connection.py 
Log Message:
Removed a redefined tearDown in a test.


=== Zope3/src/zodb/tests/test_connection.py 1.5 => 1.6 ===
--- Zope3/src/zodb/tests/test_connection.py:1.5	Thu Mar 20 19:34:08 2003
+++ Zope3/src/zodb/tests/test_connection.py	Tue Oct  7 12:00:40 2003
@@ -44,10 +44,6 @@
         self.obj = P()
         self.txn_factory = Transaction
 
-    def tearDown(self):
-        # Make sure the test doesn't leave a transaction active.
-        get_transaction().abort()
-
     def get_transaction(self):
         t = super(ConnectionTests, self).get_transaction()
         t.setUser('IDataManagerTests')
@@ -162,6 +158,7 @@
         self.assertEqual(x._p_oid, None)
 
     def tearDown(self):
+        get_transaction().abort()
         self.datamgr.close()
         self.db.close()
 




More information about the Zope3-Checkins mailing list