(path: Path, **_: str | None)
| 255 | assert sys.platform != "win32" # narrows os.geteuid for the type checker |
| 256 | |
| 257 | def read_proc(path: Path, **_: str | None) -> str: |
| 258 | assert path == Path("/proc/sys/kernel/overflowuid") |
| 259 | return str(os.geteuid()) |
| 260 | |
| 261 | mocker.patch("filelock._filesystem._ownership._linux_owner_probe", autospec=True, return_value=lambda _fd: False) |
| 262 | mocker.patch.object(Path, "read_text", autospec=True, side_effect=read_proc) |
nothing calls this directly
no outgoing calls
no test coverage detected