Commit 7a75ba7a authored by Jim Fulton's avatar Jim Fulton

Clear transaction syncs earlier

To mitigate errors during tearDown.

Lots of tests are sloppy about closing connection (because they could
be), but storages tend to get closed and transactions aborted. This
has the effedt of calling afterCompletion on connections which tries
to call storage lastTransaction, which causes errors.
parent 6c0b5609
......@@ -73,8 +73,8 @@ def setUp(test, name='test'):
zope.testing.setupstack.register(test, transaction.abort)
def tearDown(test):
zope.testing.setupstack.tearDown(test)
clear_transaction_syncs()
zope.testing.setupstack.tearDown(test)
class TestCase(unittest.TestCase):
......
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