Refactor asyncio tools tests to use structures from _remote_debugging directly #143955
Copy link
Copy link
Closed
Closed
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
Description
Activity
- addedtestsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
on Jan 17, 2026 I will like to review this
- added a commit that references this issue
on Apr 14, 2026
Metadata
Metadata
Assignees
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-refactorCode refactoring (with no changes in behavior)Code refactoring (with no changes in behavior)
The asyncio tools use structures from the
_remote_debuggingmodule.In tests we currently reimplement these structures:
cpython/Lib/test/test_asyncio/test_tools.py
Lines 7 to 11 in 1b52ce8
In GH-142394, the upstream structures from
_remote_debuggingwere changed, but the reimplementations in the tests were not updated to match. This caused a regression from GH-143952 to sneak in.Let's use structures from
_remote_debuggingdirectly, as it is currently done intest_external_inspection, to prevent any further unnoticed discrepancies.cc @pablogsal
Linked PRs