浏览代码

tests: Make threading tests conditional upon thread support

rdb 1 月之前
父节点
当前提交
983c88e005
共有 2 个文件被更改,包括 2 次插入0 次删除
  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):