(lock_type: type[BaseFileLock], tmp_path: Path)
| 383 | ], |
| 384 | ) |
| 385 | def test_wrong_platform(lock_type: type[BaseFileLock], tmp_path: Path) -> None: |
| 386 | assert not inspect.isabstract(UnixFileLock) |
| 387 | assert not inspect.isabstract(WindowsFileLock) |
| 388 | assert inspect.isabstract(BaseFileLock) |
| 389 | |
| 390 | lock = lock_type(tmp_path / "lockfile") |
| 391 | |
| 392 | with pytest.raises(NotImplementedError): |
| 393 | lock.acquire() |
| 394 | with pytest.raises(NotImplementedError): |
| 395 | lock._release() |
| 396 | |
| 397 | |
| 398 | @NEEDS_FCNTL # pragma: needs fcntl |