()
| 60 | |
| 61 | def test_async_close_after_default_executor_shutdown(tmp_path: Path) -> None: |
| 62 | async def run() -> None: |
| 63 | lock = make_async_lock(tmp_path) |
| 64 | async with lock.write_lock(timeout=2): |
| 65 | pass |
| 66 | await asyncio.get_running_loop().shutdown_default_executor() |
| 67 | await lock.close() |
| 68 | |
| 69 | with pytest.raises(RuntimeError, match="shutdown"): |
| 70 | lock.executor.submit(lambda: None) |
| 71 | |
| 72 | asyncio.run(run()) |
| 73 |
no test coverage detected