mirror of https://github.com/esphome/esphome.git
Use /sys which is not writable, not even by root. Previously
This commit is contained in:
parent
59caf009a7
commit
bbec672e40
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue