()
| 20 | |
| 21 | @pytest.fixture(autouse=True) |
| 22 | def _clear_singleton_cache() -> Generator[None]: |
| 23 | ReadWriteLock._instances.clear() |
| 24 | yield |
| 25 | for ref in list(ReadWriteLock._instances.valuerefs()): |
| 26 | if (lock := ref()) is not None: |
| 27 | lock.close() |
| 28 | ReadWriteLock._instances.clear() |
| 29 | |
| 30 | |
| 31 | @pytest.fixture |
nothing calls this directly
no test coverage detected
searching dependent graphs…