mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
gh-114099: Add test exclusions to support running the test suite on iOS (#114889)
Add test annotations required to run the test suite on iOS (PEP 730). The majority of the change involve annotating tests that use subprocess, but are skipped on Emscripten/WASI for other reasons, and including iOS/tvOS/watchOS under the same umbrella as macOS/darwin checks. `is_apple` and `is_apple_mobile` test helpers have been added to identify *any* Apple platform, and "any Apple platform except macOS", respectively.
This commit is contained in:
parent
15f6f048a6
commit
391659b3da
31 changed files with 224 additions and 150 deletions
|
@ -1,5 +1,5 @@
|
|||
from test import support
|
||||
from test.support import os_helper, requires_debug_ranges
|
||||
from test.support import is_apple_mobile, os_helper, requires_debug_ranges
|
||||
from test.support.script_helper import assert_python_ok
|
||||
import array
|
||||
import io
|
||||
|
@ -286,7 +286,7 @@ class BugsTestCase(unittest.TestCase):
|
|||
#if os.name == 'nt' and support.Py_DEBUG:
|
||||
if os.name == 'nt':
|
||||
MAX_MARSHAL_STACK_DEPTH = 1000
|
||||
elif sys.platform == 'wasi':
|
||||
elif sys.platform == 'wasi' or is_apple_mobile:
|
||||
MAX_MARSHAL_STACK_DEPTH = 1500
|
||||
else:
|
||||
MAX_MARSHAL_STACK_DEPTH = 2000
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue