File tree 2 files changed +11
-0
lines changed 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 1
1
import functools
2
2
import inspect
3
3
import os
4
+ import platform
4
5
import re
5
6
import subprocess
6
7
import sys
@@ -111,6 +112,9 @@ def legitimate_quit():
111
112
print ("success" )
112
113
113
114
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' )
114
118
@pytest .mark .backend ('TkAgg' , skip_on_importerror = True )
115
119
@pytest .mark .flaky (reruns = 3 )
116
120
@_isolated_tk_test (success_count = 1 )
Original file line number Diff line number Diff line change 3
3
import inspect
4
4
import json
5
5
import os
6
+ import platform
6
7
import signal
7
8
import subprocess
8
9
import sys
@@ -220,6 +221,12 @@ def _test_thread_impl():
220
221
elif param .values [0 ].get ("QT_API" ) == "PySide2" :
221
222
param .marks .append (
222
223
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 ))
223
230
224
231
225
232
@pytest .mark .parametrize ("env" , _thread_safe_backends )
You can’t perform that action at this time.
0 commit comments