Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Lib/test/test_external_inspection.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
busy_retry,
requires_gil_enabled,
)
from test.support.import_helper import import_module
from test.support.script_helper import make_script
from test.support.socket_helper import find_unused_port

Expand Down Expand Up @@ -163,6 +164,10 @@ def test_self_trace_after_ctypes_import(self):
The remote debugging code must skip these uninitialized duplicate
mappings and find the real PyRuntime. See gh-144563.
"""

# Skip the test if the _ctypes module is missing.
import_module("_ctypes")

# Run the test in a subprocess to avoid side effects
script = textwrap.dedent("""\
import os
Expand Down
Loading