Skip to content

Commit 5a41417

Browse files
committed
Skip test_readonly_save on Cygwin.
The test seems to require opening a file for reading, mmapping it, then opening that file for writing. Windows doesn't allow this.
1 parent 29b9239 commit 5a41417

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/test_image.py

+4
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@ def test_internals(self):
193193
assert not im.readonly
194194

195195
@pytest.mark.skipif(is_win32(), reason="Test requires opening tempfile twice")
196+
@pytest.mark.skipif(
197+
sys.platform == "cygwin",
198+
reason="Test requires opening an mmaped file for writing",
199+
)
196200
def test_readonly_save(self, tmp_path):
197201
temp_file = str(tmp_path / "temp.bmp")
198202
shutil.copy("Tests/images/rgb32bf-rgba.bmp", temp_file)

0 commit comments

Comments
 (0)