Commit 09d34131 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 7a22f281
...@@ -215,21 +215,21 @@ class BasicStorage: ...@@ -215,21 +215,21 @@ class BasicStorage:
self._storage.tpc_vote(t) self._storage.tpc_vote(t)
self._storage.tpc_finish(t) self._storage.tpc_finish(t)
def checkOversizeNote(self): ## def checkOversizeNote(self):
oid = self._storage.new_oid() ## oid = self._storage.new_oid()
t = Transaction() ## t = Transaction()
# Most storages cant cope with comments this long ## # Most storages cant cope with comments this long
t.note('0'*128*1024) ## t.note('0'*128*1024)
try: ## try:
self._storage.tpc_begin(t) ## self._storage.tpc_begin(t)
self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t) ## self._storage.store(oid, ZERO, zodb_pickle(MinPO(5)), '', t)
self._storage.tpc_vote(t) ## self._storage.tpc_vote(t)
self._storage.tpc_finish(t) ## self._storage.tpc_finish(t)
except POSException.POSError: ## except POSException.POSError:
# failed as expected ## # failed as expected
pass ## pass
else: ## else:
self.fail() ## self.fail()
def checkGetExtensionMethods(self): def checkGetExtensionMethods(self):
m = self._storage.getExtensionMethods() 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