Skip to content

Commit 90996d5

Browse files
committed
another attempt
1 parent 2cdda62 commit 90996d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_filelock.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -501,8 +501,8 @@ def test_wrong_platform(tmp_path: Path) -> None:
501501
def test_flock_not_implemented_unix(tmp_path: Path) -> None:
502502
import fcntl
503503
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")
504+
raise OSError(ENOSYS, "mock error")
505+
return fd, operation # needed for strict type checker
506506

507507
lock_path = tmp_path / "a.lock"
508508
_fcntl_flock = fcntl.flock

0 commit comments

Comments
 (0)