We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cdda62 commit 90996d5Copy full SHA for 90996d5
tests/test_filelock.py
@@ -501,8 +501,8 @@ def test_wrong_platform(tmp_path: Path) -> None:
501
def test_flock_not_implemented_unix(tmp_path: Path) -> None:
502
import fcntl
503
def dummy_flock(fd: IO[str], operation: str) -> None:
504
- if operation not in fd: # fd and operation will never be equal
505
- raise OSError(ENOSYS, "mock error")
+ raise OSError(ENOSYS, "mock error")
+ return fd, operation # needed for strict type checker
506
507
lock_path = tmp_path / "a.lock"
508
_fcntl_flock = fcntl.flock
0 commit comments