Browse Source

tests: Skip test_task_cancel_waiting() test if no threads enabled

rdb 2 years ago
parent
commit
2e21cf87e4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tests/event/test_futures.py

+ 2 - 0
tests/event/test_futures.py

@@ -174,6 +174,8 @@ def test_task_cancel_during_run():
         task.result()
 
 
[email protected](not core.Thread.is_threading_supported(),
+                    reason="Threading support disabled")
 def test_task_cancel_waiting():
     # Calling result() in a threaded task chain should cancel the future being
     # waited on if the surrounding task is cancelled.