Skip to content

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented May 5, 2025

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.
@gpshead gpshead added the tests Tests in the Lib/test dir label May 5, 2025
@gpshead gpshead requested a review from pablogsal May 5, 2025 04:16
@gpshead gpshead enabled auto-merge (squash) May 5, 2025 04:17
@gpshead gpshead merged commit c4cc5d5 into python:main May 5, 2025
44 checks passed
@vstinner
Copy link
Member

vstinner commented May 5, 2025

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