diff options
| author | Christian Heimes <christian@python.org> | 2022-06-11 09:55:11 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 09:55:11 (GMT) |
| commit | f0b7aa71c4a1330294c14b0c6f02e6c43e09c317 (patch) | |
| tree | c63957724d4acae0a829116eaff474b3d09c835d /Lib/test/test_queue.py | |
| parent | dc5e02b2f44dada145a3743ef77b07dbcf3e4a4a (diff) | |
| download | cpython-f0b7aa71c4a1330294c14b0c6f02e6c43e09c317.zip cpython-f0b7aa71c4a1330294c14b0c6f02e6c43e09c317.tar.gz cpython-f0b7aa71c4a1330294c14b0c6f02e6c43e09c317.tar.bz2 | |
gh-90473: Skip test_queue when threading is not available (GH-93712)
Diffstat (limited to 'Lib/test/test_queue.py')
| -rw-r--r-- | Lib/test/test_queue.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_queue.py b/Lib/test/test_queue.py index e308037..33113a7 100644 --- a/Lib/test/test_queue.py +++ b/Lib/test/test_queue.py @@ -10,6 +10,8 @@ from test.support import gc_collect from test.support import import_helper from test.support import threading_helper +# queue module depends on threading primitives +threading_helper.requires_working_threading(module=True) py_queue = import_helper.import_fresh_module('queue', blocked=['_queue']) c_queue = import_helper.import_fresh_module('queue', fresh=['_queue']) @@ -87,7 +89,6 @@ class BlockingTestMixin: self.fail("trigger thread ended but event never set") -@threading_helper.requires_working_threading() class BaseQueueTestMixin(BlockingTestMixin): def setUp(self): self.cum = 0 @@ -291,7 +292,6 @@ class CPriorityQueueTest(PriorityQueueTest, unittest.TestCase): class FailingQueueException(Exception): pass -@threading_helper.requires_working_threading() class FailingQueueTest(BlockingTestMixin): def setUp(self): @@ -467,7 +467,6 @@ class BaseSimpleQueueTest: return results.append(val) - @threading_helper.requires_working_threading() def run_threads(self, n_threads, q, inputs, feed_func, consume_func): results = [] sentinel = None |
