From 0c7e88eb3701261189d725f58009051261bf0a1b Mon Sep 17 00:00:00 2001 From: David Brochart Date: Tue, 25 Feb 2025 15:36:32 +0100 Subject: [PATCH] Skip test_eventloop on Trio --- tests/test_eventloop.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/test_eventloop.py b/tests/test_eventloop.py index e4aef571..890e2019 100644 --- a/tests/test_eventloop.py +++ b/tests/test_eventloop.py @@ -59,6 +59,7 @@ def _setup_env(): @windows_skip @pytest.mark.skipif(sys.platform == "darwin", reason="hangs on macos") +@pytest.mark.parametrize("anyio_backend", ["asyncio"]) def test_tk_loop(kernel): def do_thing(): time.sleep(1) @@ -90,16 +91,19 @@ def do_thing(): @windows_skip +@pytest.mark.parametrize("anyio_backend", ["asyncio"]) def test_enable_gui(kernel): enable_gui("tk", kernel) @pytest.mark.skipif(sys.platform != "darwin", reason="MacOS-only") +@pytest.mark.parametrize("anyio_backend", ["asyncio"]) def test_cocoa_loop(kernel): loop_cocoa(kernel) @pytest.mark.parametrize("gui", qt_guis_avail) +@pytest.mark.parametrize("anyio_backend", ["asyncio"]) def test_qt_enable_gui(gui, kernel, capsys): if os.getenv("GITHUB_ACTIONS", None) == "true" and gui == "qt5": pytest.skip("Qt5 and GitHub action crash CPython")