diff options
author | Russell Keith-Magee <russell@keith-magee.com> | 2024-02-05 08:04:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-05 01:04:57 +0100 |
commit | 391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0 (patch) | |
tree | 19d4bd5693a55e06e3ab4a88826e284a1e9717ae /Lib/test/test_sys_settrace.py | |
parent | 15f6f048a6ecdf0f6f4fc076d013be3d110f8ed6 (diff) | |
download | cpython-391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0.tar.gz cpython-391659b3da570bfa28fed5fbdb6f2d9c26ab3dd0.zip |
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.
Diffstat (limited to 'Lib/test/test_sys_settrace.py')
-rw-r--r-- | Lib/test/test_sys_settrace.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_sys_settrace.py b/Lib/test/test_sys_settrace.py index ae6e192a7ab..125f4022711 100644 --- a/Lib/test/test_sys_settrace.py +++ b/Lib/test/test_sys_settrace.py @@ -7,7 +7,7 @@ import difflib import gc from functools import wraps import asyncio -from test.support import import_helper +from test.support import import_helper, requires_subprocess import contextlib import os import tempfile @@ -1810,6 +1810,7 @@ class TraceOpcodesTestCase(TraceTestCase): def make_tracer(): return Tracer(trace_opcode_events=True) + @requires_subprocess() def test_trace_opcodes_after_settrace(self): """Make sure setting f_trace_opcodes after starting trace works even if it's the first time f_trace_opcodes is being set. GH-103615""" |