Use /sys which is not writable, not even by root. Previously

This commit is contained in:
Marco van Eck 2024-06-10 12:32:51 +00:00
parent 59caf009a7
commit bbec672e40
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ def test_write_utf8_file(tmp_path: Path) -> None:
assert tmp_path.joinpath("foo.txt").read_text() == "foo"
with pytest.raises(OSError):
write_utf8_file(Path("/dev/not-writable"), "bar")
write_utf8_file(Path("/sys/not-writable"), "bar")
def test_write_file(tmp_path: Path) -> None: