@@ -238,6 +238,7 @@ def check_alt_backend(alt_backend):
238
238
@pytest .mark .parametrize ("env" , _get_testable_interactive_backends ())
239
239
@pytest .mark .parametrize ("toolbar" , ["toolbar2" , "toolmanager" ])
240
240
@pytest .mark .flaky (reruns = 3 )
241
+ @pytest .mark .xdist_group (name = "subprocess" )
241
242
def test_interactive_backend (env , toolbar ):
242
243
if env ["MPLBACKEND" ] == "macosx" :
243
244
if toolbar == "toolmanager" :
@@ -330,6 +331,7 @@ def _test_thread_impl():
330
331
331
332
@pytest .mark .parametrize ("env" , _thread_safe_backends )
332
333
@pytest .mark .flaky (reruns = 3 )
334
+ @pytest .mark .xdist_group (name = "subprocess" )
333
335
def test_interactive_thread_safety (env ):
334
336
proc = _run_helper (_test_thread_impl , timeout = _test_timeout , extra_env = env )
335
337
assert proc .stdout .count ("CloseEvent" ) == 1
@@ -349,6 +351,7 @@ def _impl_test_lazy_auto_backend_selection():
349
351
assert isinstance (bk , str )
350
352
351
353
354
+ @pytest .mark .xdist_group (name = "subprocess" )
352
355
def test_lazy_auto_backend_selection ():
353
356
_run_helper (_impl_test_lazy_auto_backend_selection ,
354
357
timeout = _test_timeout )
@@ -381,6 +384,7 @@ def _implcore():
381
384
assert 'PyQt5' in sys .modules or 'pyside2' in sys .modules
382
385
383
386
387
+ @pytest .mark .xdist_group (name = "subprocess" )
384
388
def test_qt5backends_uses_qt5 ():
385
389
qt5_bindings = [
386
390
dep for dep in ['PyQt5' , 'pyside2' ]
@@ -414,6 +418,7 @@ def _impl_missing():
414
418
plt .switch_backend ("qt5agg" )
415
419
416
420
421
+ @pytest .mark .xdist_group (name = "subprocess" )
417
422
def test_qt_missing ():
418
423
_run_helper (_impl_missing , timeout = _test_timeout )
419
424
@@ -459,6 +464,7 @@ def qt5_and_qt6_pairs():
459
464
sys .platform == "linux" and not _c_internal_utils .display_is_valid (),
460
465
reason = "$DISPLAY and $WAYLAND_DISPLAY are unset" )
461
466
@pytest .mark .parametrize ('host, mpl' , [* qt5_and_qt6_pairs ()])
467
+ @pytest .mark .xdist_group (name = "subprocess" )
462
468
def test_cross_Qt_imports (host , mpl ):
463
469
try :
464
470
proc = _run_helper (_impl_test_cross_Qt_imports , host , mpl ,
@@ -541,6 +547,7 @@ def _lazy_headless():
541
547
542
548
@pytest .mark .skipif (sys .platform != "linux" , reason = "this a linux-only test" )
543
549
@pytest .mark .parametrize ("env" , _get_testable_interactive_backends ())
550
+ @pytest .mark .xdist_group (name = "subprocess" )
544
551
def test_lazy_linux_headless (env ):
545
552
proc = _run_helper (
546
553
_lazy_headless ,
@@ -618,6 +625,7 @@ def _test_number_of_draws_script():
618
625
@pytest .mark .parametrize ("env" , _blit_backends )
619
626
# subprocesses can struggle to get the display, so rerun a few times
620
627
@pytest .mark .flaky (reruns = 4 )
628
+ @pytest .mark .xdist_group (name = "subprocess" )
621
629
def test_blitting_events (env ):
622
630
proc = _run_helper (
623
631
_test_number_of_draws_script , timeout = _test_timeout , extra_env = env )
@@ -681,6 +689,7 @@ def _impl_test_interactive_timers():
681
689
682
690
683
691
@pytest .mark .parametrize ("env" , _get_testable_interactive_backends ())
692
+ @pytest .mark .xdist_group (name = "subprocess" )
684
693
def test_interactive_timers (env ):
685
694
if env ["MPLBACKEND" ] == "gtk3cairo" and os .getenv ("CI" ):
686
695
pytest .skip ("gtk3cairo timers do not work in remote CI" )
0 commit comments