From 983c88e005946b9f26c8b757704ba3000f5f3dcc Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 15 Oct 2025 20:48:56 +0200 Subject: [PATCH] tests: Make threading tests conditional upon thread support --- tests/stdpy/test_threading.py | 1 + tests/stdpy/test_threading2.py | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/stdpy/test_threading.py b/tests/stdpy/test_threading.py index 3a4363e810..f5573270bc 100644 --- a/tests/stdpy/test_threading.py +++ b/tests/stdpy/test_threading.py @@ -10,6 +10,7 @@ def test_threading_error(): @pytest.mark.skipif(sys.platform == "emscripten", reason="No threading") +@pytest.mark.skipif(not core.Thread.is_threading_supported(), reason="No threading") def test_threading(): from collections import deque diff --git a/tests/stdpy/test_threading2.py b/tests/stdpy/test_threading2.py index fd7560def9..12da4108ba 100644 --- a/tests/stdpy/test_threading2.py +++ b/tests/stdpy/test_threading2.py @@ -6,6 +6,7 @@ import pytest @pytest.mark.skipif(sys.platform == "emscripten", reason="No threading") +@pytest.mark.skipif(not core.Thread.is_threading_supported(), reason="No threading") def test_threading2(): class BoundedQueue(threading2._Verbose):