Skip to content

[GH-133419] fix test_external_inspection race assert#133422

Merged
gpshead merged 1 commit into
python:mainfrom
gpshead:gps/fix_test_external_inspection_race_maybe
May 5, 2025
Merged

[GH-133419] fix test_external_inspection race assert#133422
gpshead merged 1 commit into
python:mainfrom
gpshead:gps/fix_test_external_inspection_race_maybe

Conversation

@gpshead

@gpshead gpshead commented May 5, 2025

Copy link
Copy Markdown
Member

either line could be where the inspection finds the foo() function as after ready is sent, the process may not have made progress onto the next line yet. "solve" by putting the statements on the same line. simpler than asserting for multiple possible line values.

Fixes #133419.
Closes #133419.

either line could be where the inspection finds the foo()
function as after ready is sent, the process may not have made progress
onto the next line yet.  "solve" by putting the statements on the same
line.
@vstinner

vstinner commented May 5, 2025

Copy link
Copy Markdown
Member

This change doesn't fix all tests, it's incomplete. I wrote #133433 to fix more tests.

Pranjal095 pushed a commit to Pranjal095/cpython that referenced this pull request Jul 12, 2025
…3422)

[tests] fix test_external_inspection race assert

either line could be where the inspection finds the foo()
function as after ready is sent, the process may not have made progress
onto the next line yet.  "solve" by putting the statements on the same
line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_external_inspection fails on Ubuntu

2 participants