Skip to content

Conversation

@gvanrossum
Copy link
Member

@gvanrossumgvanrossum 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.

@gvanrossumgvanrossum 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-botbedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Jul 23, 2023
@gvanrossum
Copy link
MemberAuthor

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
MemberAuthor

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

@gvanrossumgvanrossum merged commit 7fc9be3 into python:mainJul 23, 2023
@gvanrossumgvanrossum 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 fixespythongh-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 fixespythongh-107082 -- see discussion there -- it still removes debug code that should never have been committed.)
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@gvanrossum@vstinner@bedevere-bot