mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +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
|
@ -6,6 +6,7 @@ import random
|
|||
import time
|
||||
import unittest
|
||||
import weakref
|
||||
from test.support import threading_helper
|
||||
|
||||
try:
|
||||
from _testcapi import hamt
|
||||
|
@ -341,6 +342,7 @@ class ContextTest(unittest.TestCase):
|
|||
ctx1.run(ctx1_fun)
|
||||
|
||||
@isolated_context
|
||||
@threading_helper.requires_working_threading()
|
||||
def test_context_threads_1(self):
|
||||
cvar = contextvars.ContextVar('cvar')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue