Commit ecd4b70a authored by Barry Warsaw's avatar Barry Warsaw

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.
parent 06361b12
......@@ -215,21 +215,21 @@ class BasicStorage:
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()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment