Commit 39cf48a0 authored by Vincent Pelletier's avatar Vincent Pelletier

storage: Exclude subtransaction detector from coverage.

parent b5eab640
...@@ -44,7 +44,7 @@ class NoReentryConnection(sqlite3.Connection): ...@@ -44,7 +44,7 @@ class NoReentryConnection(sqlite3.Connection):
__entered = False __entered = False
def __enter__(self): def __enter__(self):
if self.__entered: if self.__entered: # pragma: no cover
raise Exception('Subtransactions are not supported') raise Exception('Subtransactions are not supported')
self.__entered = True self.__entered = True
return super(NoReentryConnection, self).__enter__() return super(NoReentryConnection, self).__enter__()
......
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