MCPcopy Create free account
hub / github.com/tox-dev/filelock / rollback

Function rollback

tests/sqlite/test_async_cancellation.py:281–289  ·  view source on GitHub ↗
(real_connection: sqlite3.Connection)

Source from the content-addressed store, hash-verified

279 return cursor
280
281 def rollback(real_connection: sqlite3.Connection) -> None:
282 nonlocal rollback_failed
283 if not rollback_failed:
284 rollback_failed = True
285 try:
286 raise prior_rollback_error
287 except LookupError:
288 raise rollback_error # ruff:ignore[raise-without-from-inside-except] # exercise implicit backend context preservation
289 real_connection.rollback()
290
291 patch_connection(mocker, execute=execute, rollback=rollback)
292 return _RollbackFailures(acquire_error, rollback_error, prior_rollback_error)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected