Title: test__opcode fails with missing 'jump_backward' in specialization stats · Issue #132815 · python/cpython · GitHub
Open Graph Title: test__opcode fails with missing 'jump_backward' in specialization stats · Issue #132815 · python/cpython
X Title: test__opcode fails with missing 'jump_backward' in specialization stats · Issue #132815 · python/cpython
Description: 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 speciali...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python/cpython/issues/132815
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"test__opcode fails with missing 'jump_backward' in specialization stats","articleBody":"# Bug report\n\n### Bug description:\n\nWhen 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. \n\n### Configuration\n```sh\n./configure --with-pydebug --enable-pystats\n```\n\n### Test Output\n```sh\n╰─$ ./python -m test test__opcode 82595ms\nUsing random seed: 2739258338\n0:00:00 load avg: 0.97 Run 1 test sequentially in a single process\n0:00:00 load avg: 0.97 [1/1] test__opcode\ntest test__opcode failed -- Traceback (most recent call last):\n File \"/home/arf/Desktop/cpython/Lib/test/test__opcode.py\", line 131, in test_specialization_stats\n self.assertCountEqual(stats.keys(), specialized_opcodes)\n ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError: Element counts were not equal:\nFirst has 0, Second has 1: 'jump_backward'\n\n0:00:00 load avg: 0.97 [1/1/1] test__opcode failed (1 failure)\n\n== Tests result: FAILURE ==\n\n1 test failed:\n test__opcode\n\nTotal duration: 52 ms\nTotal tests: run=7 failures=1\nTotal test files: run=1/1 failed=1\nResult: FAILURE\n```\n\n### Environment\n- OS: Arch Linux (Linux 6.14.2-arch1-1)\n\n### CPython versions tested on:\n\nCPython main branch, 3.14\n\n### Operating systems tested on:\n\nLinux\n\n\u003c!-- gh-linked-prs --\u003e\n### Linked PRs\n* gh-135606\n* gh-135612\n\u003c!-- /gh-linked-prs --\u003e\n","author":{"url":"https://github.com/furkanonder","@type":"Person","name":"furkanonder"},"datePublished":"2025-04-22T21:02:59.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/132815/cpython/issues/132815"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2eab0457-3952-24a3-b9a5-ec2ff597d557 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 804A:166D49:191B49C:228D6EA:696AA1B1 |
| html-safe-nonce | 2f65b57ffcfefd2b14d479ad5e0abb3c2ab68897aa2e6eb7d7f5941d6d561b94 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDRBOjE2NkQ0OToxOTFCNDlDOjIyOEQ2RUE6Njk2QUExQjEiLCJ2aXNpdG9yX2lkIjoiNDcxODcwODkzODY5NTY4MDQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 564c6db10adf6f9ef0d268d3cba50e83d84a95960c3433cf3a83f67a27854d75 |
| hovercard-subject-tag | issue:3012124092 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/132815/issue_layout |
| twitter:image | https://opengraph.githubassets.com/acb2c83afcb6caacb0818d6d1abedae26e31cd9b7ee82be98e9efd6299bc7d0c/python/cpython/issues/132815 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/acb2c83afcb6caacb0818d6d1abedae26e31cd9b7ee82be98e9efd6299bc7d0c/python/cpython/issues/132815 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | furkanonder |
| hostname | github.com |
| expected-hostname | github.com |
| None | a51f97dbb9326f71c08ecb61577457d543c602124d1a2672871258ef37ac5261 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4bd0eac606c70914085176ef312ebdcd97a8cdf1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width