Sfoglia il codice sorgente

tests: Make threading tests conditional upon thread support

rdb 2 mesi fa
parent
commit
983c88e005
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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):