Browse Source

tests: Make threading tests conditional upon thread support

rdb 1 month ago
parent
commit
983c88e005
2 changed files with 2 additions and 0 deletions
  1. 1 0
      tests/stdpy/test_threading.py
  2. 1 0
      tests/stdpy/test_threading2.py

+ 1 - 0
tests/stdpy/test_threading.py

@@ -10,6 +10,7 @@ def test_threading_error():
 
 
 @pytest.mark.skipif(sys.platform == "emscripten", reason="No threading")
[email protected](not core.Thread.is_threading_supported(), reason="No threading")
 def test_threading():
     from collections import deque
 

+ 1 - 0
tests/stdpy/test_threading2.py

@@ -6,6 +6,7 @@ import pytest
 
 
 @pytest.mark.skipif(sys.platform == "emscripten", reason="No threading")
[email protected](not core.Thread.is_threading_supported(), reason="No threading")
 def test_threading2():
     class BoundedQueue(threading2._Verbose):