mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
bpo-40280: Detect missing threading on WASM platforms (GH-32352)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
5aee46b31b
commit
2b16a08bc7
33 changed files with 103 additions and 21 deletions
|
@ -58,6 +58,7 @@ class TestCase(unittest.TestCase):
|
|||
scheduler.run()
|
||||
self.assertEqual(l, [0.01, 0.02, 0.03, 0.04, 0.05])
|
||||
|
||||
@threading_helper.requires_working_threading()
|
||||
def test_enter_concurrent(self):
|
||||
q = queue.Queue()
|
||||
fun = q.put
|
||||
|
@ -111,6 +112,7 @@ class TestCase(unittest.TestCase):
|
|||
scheduler.run()
|
||||
self.assertEqual(l, [0.02, 0.03, 0.04])
|
||||
|
||||
@threading_helper.requires_working_threading()
|
||||
def test_cancel_concurrent(self):
|
||||
q = queue.Queue()
|
||||
fun = q.put
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue