Skip to content

Commit f0b7aa7

Browse files
authored
gh-90473: Skip test_queue when threading is not available (GH-93712)
1 parent dc5e02b commit f0b7aa7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Lib/test/test_queue.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
from test.support import import_helper
1111
from test.support import threading_helper
1212

13+
# queue module depends on threading primitives
14+
threading_helper.requires_working_threading(module=True)
1315

1416
py_queue = import_helper.import_fresh_module('queue', blocked=['_queue'])
1517
c_queue = import_helper.import_fresh_module('queue', fresh=['_queue'])
@@ -87,7 +89,6 @@ def do_exceptional_blocking_test(self,block_func, block_args, trigger_func,
8789
self.fail("trigger thread ended but event never set")
8890

8991

90-
@threading_helper.requires_working_threading()
9192
class BaseQueueTestMixin(BlockingTestMixin):
9293
def setUp(self):
9394
self.cum = 0
@@ -291,7 +292,6 @@ class CPriorityQueueTest(PriorityQueueTest, unittest.TestCase):
291292
class FailingQueueException(Exception): pass
292293

293294

294-
@threading_helper.requires_working_threading()
295295
class FailingQueueTest(BlockingTestMixin):
296296

297297
def setUp(self):
@@ -467,7 +467,6 @@ def consume_timeout(self, q, results, sentinel):
467467
return
468468
results.append(val)
469469

470-
@threading_helper.requires_working_threading()
471470
def run_threads(self, n_threads, q, inputs, feed_func, consume_func):
472471
results = []
473472
sentinel = None

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy