Skip to content

Commit 751bd13

Browse files
committed
tests: skip Tk tests on PyPy
1 parent 00afcd9 commit 751bd13

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mss/tests/test_issue_220.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,19 @@
22
This is part of the MSS Python's module.
33
Source: https://github.com/BoboTiG/python-mss
44
"""
5+
import platform
6+
57
import pytest
68

79
import mss
810

911
tkinter = pytest.importorskip("tkinter")
1012

13+
if platform.python_implementation() == "PyPy":
14+
# PyPy 7.3.11 [Python 3.9.16] fails on GitHub:
15+
# RuntimeError: tk.h version (8.5) doesn't match libtk.a version (8.6)
16+
pytestmark = pytest.mark.skip
17+
1118

1219
@pytest.fixture
1320
def root() -> tkinter.Tk:

0 commit comments

Comments
 (0)