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

Class _SlowRollbackCon

tests/test_read_write_unit.py:592–599  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

590 real_con = lock._con
591
592 class _SlowRollbackCon:
593 def rollback(self) -> None: # noqa: PLR6301
594 started.set()
595 proceed.wait(timeout=5)
596 real_con.rollback()
597
598 def __getattr__(self, name: str) -> object:
599 return getattr(real_con, name)
600
601 lock._con = _SlowRollbackCon() # ty: ignore[invalid-assignment]
602 threading.Thread(target=lock.release, daemon=True).start()

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…