Commit a422ae33 authored by Julien Muchembled's avatar Julien Muchembled

Rewrite previous commit in a way it does not break threaded tests

git-svn-id: https://svn.erp5.org/repos/neo/trunk@2832 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent e1f5ac14
......@@ -92,8 +92,10 @@ class Application(object):
self.listening_conn = None
self.nm.close()
self.em.close()
if self.dm is not None:
try:
self.dm.close()
except AttributeError:
pass
del self.__dict__
def _poll(self):
......
......@@ -30,9 +30,6 @@ class DatabaseManager(object):
"""
self._under_transaction = False
def close(self):
pass
def isUnderTransaction(self):
return self._under_transaction
......
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