mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +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
|
|
@ -39,6 +39,7 @@ from test.support import (TestFailed,
|
|||
run_with_locale, cpython_only,
|
||||
darwin_malloc_err_warning)
|
||||
from test.support.import_helper import import_fresh_module
|
||||
from test.support import threading_helper
|
||||
from test.support import warnings_helper
|
||||
import random
|
||||
import inspect
|
||||
|
|
@ -1591,6 +1592,8 @@ def thfunc2(cls):
|
|||
for sig in Overflow, Underflow, DivisionByZero, InvalidOperation:
|
||||
cls.assertFalse(thiscontext.flags[sig])
|
||||
|
||||
|
||||
@threading_helper.requires_working_threading()
|
||||
class ThreadingTest(unittest.TestCase):
|
||||
'''Unit tests for thread local contexts in Decimal.'''
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue