[Zodb-checkins] CVS: ZODB3/ZODB/tests - BasicStorage.py:1.23

Barry Warsaw barry at zope.com
Fri May 30 14:34:46 EDT 2003


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

Modified Files:
	BasicStorage.py 
Log Message:
checkOversizeNote(): This test is bogus.  BerkeleyDB has no problem
storing a 128K transaction note and it shouldn't cause this test to
fail.

Disabling the test by commenting it out.


=== ZODB3/ZODB/tests/BasicStorage.py 1.22 => 1.23 ===
--- ZODB3/ZODB/tests/BasicStorage.py:1.22	Fri May 30 05:24:44 2003
+++ ZODB3/ZODB/tests/BasicStorage.py	Fri May 30 13:34:44 2003
@@ -215,21 +215,21 @@
         self._storage.tpc_vote(t)
         self._storage.tpc_finish(t)
 
-    def checkOversizeNote(self):
-        oid = self._storage.new_oid()
-        t = Transaction()
-        # Most storages cant cope with comments this long
-        t.note('0'*128*1024)
-        try:
-            self._storage.tpc_begin(t)
-            self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
-            self._storage.tpc_vote(t)
-            self._storage.tpc_finish(t)
-        except POSException.POSError:
-            # failed as expected
-            pass
-        else:
-            self.fail()
+##    def checkOversizeNote(self):
+##        oid = self._storage.new_oid()
+##        t = Transaction()
+##        # Most storages cant cope with comments this long
+##        t.note('0'*128*1024)
+##        try:
+##            self._storage.tpc_begin(t)
+##            self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
+##            self._storage.tpc_vote(t)
+##            self._storage.tpc_finish(t)
+##        except POSException.POSError:
+##            # failed as expected
+##            pass
+##        else:
+##            self.fail()
 
     def checkGetExtensionMethods(self):
         m = self._storage.getExtensionMethods()




More information about the Zodb-checkins mailing list