@@ -738,11 +738,14 @@ def tiny(tmp_path):
738738def test_brain_screenshot (renderer_interactive_pyvistaqt , tmp_path , brain_gc ):
739739 """Test time viewer screenshot."""
740740 # This is broken on Conda + GHA for some reason
741+ from qtpy import API_NAME
742+
741743 if (
742744 os .getenv ("CONDA_PREFIX" , "" ) != ""
743745 and os .getenv ("GITHUB_ACTIONS" , "" ) == "true"
746+ or API_NAME .lower () == "pyside6"
744747 ):
745- pytest .skip ("Test is unreliable on GitHub Actions conda runs" )
748+ pytest .skip ("Test is unreliable on GitHub Actions conda runs and pyside6 " )
746749 tiny_brain , ratio = tiny (tmp_path )
747750 img_nv = tiny_brain .screenshot (time_viewer = False )
748751 want = (_TINY_SIZE [1 ] * ratio , _TINY_SIZE [0 ] * ratio , 3 )
@@ -1096,6 +1099,10 @@ def test_brain_traces(renderer_interactive_pyvistaqt, hemi, src, tmp_path, brain
10961099def test_brain_scraper (renderer_interactive_pyvistaqt , brain_gc , tmp_path ):
10971100 """Test a simple scraping example."""
10981101 pytest .importorskip ("sphinx_gallery" )
1102+ from qtpy import API_NAME
1103+
1104+ if API_NAME .lower () == "pyside6" :
1105+ pytest .skip ("Error in event loop on PySidie6" )
10991106 stc = read_source_estimate (fname_stc , subject = "sample" )
11001107 size = (600 , 400 )
11011108 brain = stc .plot (
0 commit comments