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

Function main

tasks/capability/assert_fallback.py:14–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def main() -> None:
15 blocked = os.environ["FILELOCK_BLOCK_MODULE"]
16 if blocked == "fcntl" and filelock.has_fcntl:
17 msg = f"without fcntl, expected has_fcntl False, got {filelock.has_fcntl!r}"
18 raise SystemExit(msg)
19 if blocked == "sqlite3" and filelock.ReadWriteLock is not None:
20 msg = f"without sqlite3, expected ReadWriteLock None, got {filelock.ReadWriteLock!r}"
21 raise SystemExit(msg)
22 print(f"fallback engaged without {blocked}")
23
24
25if __name__ == "__main__":

Callers 1

assert_fallback.pyFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected