[Zodb-checkins] CVS: ZODB3/ZODB/tests - testZODB.py:1.5.16.1

Jeremy Hylton jeremy@zope.com
Fri, 1 Nov 2002 17:24:58 -0500


Update of /cvs-repository/ZODB3/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv8382

Modified Files:
      Tag: ZODB3-deadlock-debug-branch
	testZODB.py 
Log Message:
checkUnmodifiedObject no longer works


=== ZODB3/ZODB/tests/testZODB.py 1.5 => 1.5.16.1 ===
--- ZODB3/ZODB/tests/testZODB.py:1.5	Sat Sep  7 13:22:09 2002
+++ ZODB3/ZODB/tests/testZODB.py	Fri Nov  1 17:24:57 2002
@@ -94,28 +94,6 @@
         self._storage.close()
         removefs("ZODBTests.fs")
 
-    def checkUnmodifiedObject(self):
-        # Test that a transaction with only unmodified objects works
-        # correctly.  The specific sequence of events is:
-        #     - an object is modified
-        #     - it is registered with the transaction
-        #     - the object is explicitly "unmodified"
-        #     - the transaction commits, but now has no modified objects
-        # We'd like to avoid doing anything with the storage.
-        ltid = self._storage.lastTransaction()
-        _objects = get_transaction()._objects
-        self.assertEqual(len(_objects), 0)
-        r = self._db.open().root()
-        obj = r["test"][0]
-        obj[1] = 1
-        self.assertEqual(obj._p_changed, 1)
-        self.assertEqual(len(_objects), 1)
-        del obj._p_changed
-        self.assertEqual(obj._p_changed, None)
-        self.assertEqual(len(_objects), 1)
-        get_transaction().commit()
-        self.assertEqual(ltid, self._storage.lastTransaction())
-
     def checkVersionOnly(self):
         # Make sure the changes to make empty transactions a no-op
         # still allow things like abortVersion().  This should work