Revert "[FIX] core: close cursors open during tests"
Not necessary anymore thanks to commit731b9f60ea. The test cursors were leaked by the _check_accounting_configured() function used to manually skip some tests. After731b9f6the tests are skipped cleanly without leaking cursors, so this became redundant with the reset() function already present in the TransactionCase cleanups. This reverts commit57b14988b0.
This commit is contained in:
@@ -88,14 +88,7 @@ class BaseCase(unittest2.TestCase):
|
||||
"""
|
||||
|
||||
def cursor(self):
|
||||
cr = self.registry.cursor()
|
||||
|
||||
@self.addCleanup
|
||||
def close_cursor():
|
||||
if not cr.closed:
|
||||
cr.close()
|
||||
|
||||
return cr
|
||||
return self.registry.cursor()
|
||||
|
||||
def ref(self, xid):
|
||||
""" Returns database ID for the provided :term:`external identifier`,
|
||||
|
||||
Reference in New Issue
Block a user