[FIX] Cursor.closed property

`_obj` doesn't exists anymore when the cursor is effectively closed.
Christophe Simonis 2015-05-11 16:22:17 +02:00
parent 46d446fd47
commit 04b252b72c
1 changed files with 1 additions and 3 deletions

View File

@ -404,9 +404,7 @@ class Cursor(object):
def closed(self):
# NOTE: we cannot use `__getattr__` delegation as we
# should not `check` that the cursor is closed
return self._obj.closed
return self._closed
class TestCursor(Cursor):
""" A cursor to be used for tests. It keeps the transaction open across