1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

dashboard: Fix file writes on Windows (#6013)

This commit is contained in:
J. Nick Koston
2023-12-24 03:56:31 -10:00
committed by GitHub
parent 6583026e14
commit fe15d993f9
2 changed files with 10 additions and 2 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("/not-writable"), "bar")
write_utf8_file(Path("/dev/not-writable"), "bar")
def test_write_file(tmp_path: Path) -> None: