()
| 12 | |
| 13 | |
| 14 | def 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 | |
| 25 | if __name__ == "__main__": |