File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11import functools
22import inspect
33import os
4+ import platform
45import re
56import subprocess
67import sys
@@ -111,6 +112,9 @@ def legitimate_quit():
111112 print ("success" )
112113
113114
115+ @pytest .mark .skipif (platform .python_implementation () != 'CPython' ,
116+ reason = 'PyPy does not support Tkinter threading: '
117+ 'https://foss.heptapod.net/pypy/pypy/-/issues/1929' )
114118@pytest .mark .backend ('TkAgg' , skip_on_importerror = True )
115119@pytest .mark .flaky (reruns = 3 )
116120@_isolated_tk_test (success_count = 1 )
Original file line number Diff line number Diff line change 33import inspect
44import json
55import os
6+ import platform
67import signal
78import subprocess
89import sys
@@ -220,6 +221,12 @@ def _test_thread_impl():
220221 elif param .values [0 ].get ("QT_API" ) == "PySide2" :
221222 param .marks .append (
222223 pytest .mark .xfail (raises = subprocess .CalledProcessError ))
224+ elif backend == "tkagg" and platform .python_implementation () != 'CPython' :
225+ param .marks .append (
226+ pytest .mark .xfail (
227+ reason = 'PyPy does not support Tkinter threading: '
228+ 'https://foss.heptapod.net/pypy/pypy/-/issues/1929' ,
229+ strict = True ))
223230
224231
225232@pytest .mark .parametrize ("env" , _thread_safe_backends )
You can’t perform that action at this time.
0 commit comments