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 86eb297 commit 3f9672bCopy full SHA for 3f9672b
tests/test_filelock.py
@@ -500,8 +500,8 @@ def test_wrong_platform(tmp_path: Path) -> None:
500
@pytest.mark.skipif(sys.platform == "win32", reason="Windows filesystems support flock")
501
def test_flock_not_implemented_unix(tmp_path: Path) -> None:
502
import fcntl
503
- def dummy_flock(fd: IO, operation: str) -> None:
504
- if fd != operation: # fd and operation will never be equal
+ def dummy_flock(fd: IO[Any], operation: str) -> None:
+ if operation not in fd: # fd and operation will never be equal
505
raise OSError(ENOSYS, "mock error")
506
507
lock_path = tmp_path / "a.lock"
0 commit comments