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):