Commit 4cb27dec authored by Julien Muchembled's avatar Julien Muchembled

CMFActivity: remove obsolete unit test

parent c4f4ecd4
...@@ -928,38 +928,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor): ...@@ -928,38 +928,6 @@ class TestCMFActivity(ERP5TypeTestCase, LogInterceptor):
activity_tool.flush(p, invoke=0) activity_tool.flush(p, invoke=0)
self.commit() self.commit()
def test_82_AbortTransactionSynchronously(self):
"""
This test checks if transaction.abort() synchronizes connections. It
didn't do so back in Zope 2.7
"""
# Make a new persistent object, and commit it so that an oid gets
# assigned.
module = self.getOrganisationModule()
organisation = module.newContent(portal_type = 'Organisation')
organisation_id = organisation.getId()
self.tic()
organisation = module[organisation_id]
# Now fake a read conflict.
from ZODB.POSException import ReadConflictError
tid = organisation._p_serial
oid = organisation._p_oid
conn = organisation._p_jar
try:
conn.db().invalidate({oid: tid})
except TypeError:
conn.db().invalidate(tid, {oid: tid})
conn._cache.invalidate(oid)
# Access to invalidated object in non-MVCC connections should raise a
# conflict error
organisation = module[organisation_id]
self.assertRaises(ReadConflictError, getattr, organisation, 'uid')
self.abort()
organisation.uid
@for_each_activity @for_each_activity
def testCallWithGroupIdParamater(self, activity): def testCallWithGroupIdParamater(self, activity):
dedup = activity != 'SQLQueue' dedup = activity != 'SQLQueue'
......
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