You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test__opcode fails with missing 'jump_backward' in specialization stats #132815
When running the test__opcode test with a build that uses --enable-pystats, there is a mismatch between the expected specialized opcodes and the actual ones. The test is expecting jump_backward in the specialized opcodes list, but it's not present in the actual stats.
Configuration
./configure --with-pydebug --enable-pystats
Test Output
╰─$ ./python -m test test__opcode 82595ms
Using random seed: 2739258338
0:00:00 load avg: 0.97 Run 1 test sequentially in a single process
0:00:00 load avg: 0.97 [1/1] test__opcode
test test__opcode failed -- Traceback (most recent call last):
File "/home/arf/Desktop/cpython/Lib/test/test__opcode.py", line 131, in test_specialization_stats
self.assertCountEqual(stats.keys(), specialized_opcodes)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Element counts were not equal:
First has 0, Second has 1: 'jump_backward'
0:00:00 load avg: 0.97 [1/1/1] test__opcode failed (1 failure)
== Tests result: FAILURE ==
1 test failed:
test__opcode
Total duration: 52 ms
Total tests: run=7 failures=1
Total test files: run=1/1 failed=1
Result: FAILURE
Activity
furkanonder commentedon Apr 22, 2025
bisect to #128918
@colesbury @markshannon
AndPuQing commentedon Jun 17, 2025
In my bisect testing, it identified PR #129194 as the source of the issue. This PR added
JUMP_BACKWARDto_specializationsinLib/_opcode_metadata.py.I've created a fix in PR #135606 to address this problem.
gh-132815: Add support for JUMP_BACKWARD in specialization stats (#13…
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (
vstinner commentedon Jun 17, 2025
Fixed. Thanks for the bug report.
[3.14] gh-132815: Add support for JUMP_BACKWARD in specialization sta…
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (
pythongh-132815: Add support for JUMP_BACKWARD in specialization stats (