@@ -63,6 +63,10 @@ def _get_testable_interactive_backends():
63
63
elif env ["MPLBACKEND" ].startswith ('wx' ) and sys .platform == 'darwin' :
64
64
# ignore on OSX because that's currently broken (github #16849)
65
65
marks .append (pytest .mark .xfail (reason = 'github #16849' ))
66
+ elif (env ['MPLBACKEND' ] == 'tkagg' and 'TF_BUILD' in os .environ and
67
+ sys .platform == 'darwin' and sys .version_info [:2 ] == (3 , 10 )):
68
+ marks .append ( # https://github.com/actions/setup-python/issues/649
69
+ pytest .mark .xfail (reason = 'Tk version mismatch on Azure macOS CI' ))
66
70
envs .append (
67
71
pytest .param (
68
72
{** env , 'BACKEND_DEPS' : ',' .join (deps )},
@@ -271,6 +275,10 @@ def _test_thread_impl():
271
275
reason = 'PyPy does not support Tkinter threading: '
272
276
'https://foss.heptapod.net/pypy/pypy/-/issues/1929' ,
273
277
strict = True ))
278
+ elif (backend == 'tkagg' and 'TF_BUILD' in os .environ and
279
+ sys .platform == 'darwin' and sys .version_info [:2 ] == (3 , 10 )):
280
+ param .marks .append ( # https://github.com/actions/setup-python/issues/649
281
+ pytest .mark .xfail ('Tk version mismatch on Azure macOS CI' ))
274
282
275
283
276
284
@pytest .mark .parametrize ("env" , _thread_safe_backends )
@@ -540,6 +548,11 @@ def _test_number_of_draws_script():
540
548
elif backend == "wx" :
541
549
param .marks .append (
542
550
pytest .mark .skip ("wx does not support blitting" ))
551
+ elif (backend == 'tkagg' and 'TF_BUILD' in os .environ and
552
+ sys .platform == 'darwin' and sys .version_info [:2 ] == (3 , 10 )):
553
+ param .marks .append ( # https://github.com/actions/setup-python/issues/649
554
+ pytest .mark .xfail ('Tk version mismatch on Azure macOS CI' )
555
+ )
543
556
544
557
545
558
@pytest .mark .parametrize ("env" , _blit_backends )
0 commit comments