Merge pull request #4944 from hugovk/mingw-skips

Skip test_photoimage on MinGW due to segmentation fault
This commit is contained in:
Andrew Murray 2020-10-04 20:26:50 +11:00 committed by GitHub
commit 6620916884
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@ import pytest
from PIL import Image from PIL import Image
from .helper import assert_image_equal, hopper from .helper import assert_image_equal, hopper, is_mingw
try: try:
import tkinter as tk import tkinter as tk
@ -52,6 +52,7 @@ def test_kw():
assert im is None assert im is None
@pytest.mark.skipif(is_mingw(), reason="Segmentation fault")
def test_photoimage(): def test_photoimage():
for mode in TK_MODES: for mode in TK_MODES:
# test as image: # test as image: