mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-25 17:36:18 +03:00
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.
This commit is contained in:
parent
29b92391bc
commit
5a41417224
|
@ -193,6 +193,10 @@ class TestImage:
|
|||
assert not im.readonly
|
||||
|
||||
@pytest.mark.skipif(is_win32(), reason="Test requires opening tempfile twice")
|
||||
@pytest.mark.skipif(
|
||||
sys.platform == "cygwin",
|
||||
reason="Test requires opening an mmaped file for writing",
|
||||
)
|
||||
def test_readonly_save(self, tmp_path):
|
||||
temp_file = str(tmp_path / "temp.bmp")
|
||||
shutil.copy("Tests/images/rgb32bf-rgba.bmp", temp_file)
|
||||
|
|
Loading…
Reference in New Issue
Block a user