Skip to content

gh-107082: Remove debug hack from get_first_executor in test_capi.test_misc #107085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 23, 2023

Conversation

gvanrossum
Copy link
Member

@gvanrossum gvanrossum commented Jul 23, 2023

In order to test this function more thoroughly during debugging I made it call _testinternalcapi.get_executor() every time, instead of just when a JUMP_BACKWARD opcode is found. This causes it to be called for cache entries, resulting in failing asserts. The fix removes the expression part or 1 that I had added.

(Is it okay that this function can crash with out of range arguments? Well I suppose it's okay since it's part of _testinternalcapi.)

@vstinner
Copy link
Member

@gvanrossum: If common CI jobs pass, you can try to add the test-with-buildbots label to try to trigger the s390 buildbot.

@gvanrossum gvanrossum added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jul 23, 2023
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by @gvanrossum for commit 901cf21 🤖

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jul 23, 2023
@gvanrossum
Copy link
Member Author

Note: even if this doesn't fix the issue it should still be merged, since that debug or 1 definitely isn't meant to be part of the test.

@gvanrossum
Copy link
Member Author

Landing this, even though it doesn't fix the issue (it's still removing debug code that was accidentally committed).

@gvanrossum gvanrossum merged commit 7fc9be3 into python:main Jul 23, 2023
@gvanrossum gvanrossum deleted the fix-test-misc branch July 23, 2023 01:22
jtcave pushed a commit to jtcave/cpython that referenced this pull request Jul 23, 2023
…pi.test_misc (python#107085)

(Even though it doesn't look like it fixes pythongh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
mementum pushed a commit to mementum/cpython that referenced this pull request Jul 23, 2023
…pi.test_misc (python#107085)

(Even though it doesn't look like it fixes pythongh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
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.

3 participants