Skip to content

test__opcode fails with missing 'jump_backward' in specialization stats #132815

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

Open
furkanonder opened this issue Apr 22, 2025 · 1 comment
Open
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@furkanonder
Copy link
Contributor

furkanonder commented Apr 22, 2025

Bug report

Bug description:

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

Environment

  • OS: Arch Linux (Linux 6.14.2-arch1-1)

CPython versions tested on:

CPython main branch, 3.14

Operating systems tested on:

Linux

@furkanonder furkanonder added tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error 3.14 new features, bugs and security fixes labels Apr 22, 2025
@furkanonder
Copy link
Contributor Author

bisect to #128918

@colesbury @markshannon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.14 new features, bugs and security fixes tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

1 participant