Fix windows tests

This commit is contained in:
Timmy Welch 2022-09-19 22:52:45 -07:00
parent 55384790f8
commit 30dbe758d4
No known key found for this signature in database

View File

@ -106,9 +106,9 @@ def test_rename_ro_dest(tmp_comic, tmp_path):
dest = tmp_path / "tmp"
dest.mkdir(mode=0o000)
with pytest.raises(OSError):
tmp_comic.rename(dest / "test.cbz")
if platform.system() == "Windows":
raise OSError("Windows sucks")
tmp_comic.rename(dest / "test.cbz")
dest.chmod(mode=0o777)
assert old_path.exists()
assert tmp_comic.path.exists()