Title: Remove (or integrate to CI/pyperformance) Module/_decimal/tests · Issue #149755 · python/cpython · GitHub
Open Graph Title: Remove (or integrate to CI/pyperformance) Module/_decimal/tests · Issue #149755 · python/cpython
X Title: Remove (or integrate to CI/pyperformance) Module/_decimal/tests · Issue #149755 · python/cpython
Description: This is a follow-up of #115119. The bench.py script already partially integrated to the pyperformance, see python/pyperformance#473. The Modules/_decimal/tests/deccheck.py currently is broken. Even with the patch diff --git a/Modules/_de...
Open Graph Description: This is a follow-up of #115119. The bench.py script already partially integrated to the pyperformance, see python/pyperformance#473. The Modules/_decimal/tests/deccheck.py currently is broken. Even...
X Description: This is a follow-up of #115119. The bench.py script already partially integrated to the pyperformance, see python/pyperformance#473. The Modules/_decimal/tests/deccheck.py currently is broken. Even...
Opengraph URL: https://github.com/python/cpython/issues/149755
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Remove (or integrate to CI/pyperformance) Module/_decimal/tests","articleBody":"This is a follow-up of #115119.\n\nThe `bench.py` script already partially integrated to the pyperformance, see https://github.com/python/pyperformance/issues/473.\n\nThe `Modules/_decimal/tests/deccheck.py` currently is broken. Even with the patch\n```diff\ndiff --git a/Modules/_decimal/tests/deccheck.py b/Modules/_decimal/tests/deccheck.py\nindex bf277dd6879..b276700bc01 100644\n--- a/Modules/_decimal/tests/deccheck.py\n+++ b/Modules/_decimal/tests/deccheck.py\n@@ -53,6 +53,8 @@\n from formathelper import rand_format, rand_locale\n from _pydecimal import _dec_from_triple\n \n+sys.set_int_max_str_digits(0)\n+\n C = import_fresh_module('decimal', fresh=['_decimal'])\n P = import_fresh_module('decimal', blocked=['_decimal'])\n EXIT_STATUS = 0\n```\nI still got\n```\n$ ./python Modules/_decimal/tests/deccheck.py --short\n\n\nRandom seed: 1778644369\n\n\ntesting __abs__ ...\n prec: 3 emin: -3 emax: 3\n[...]\ntesting __hash__ ...\n prec: 3 emin: -3 emax: 3\nTraceback (most recent call last):\n [...]\n File \"/home/sk/src/cpython/Modules/_decimal/tests/deccheck.py\", line 570, in skip_error\n return getattr(shandler, t.funcname, shandler.default)(t)\n ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^\nTypeError: 'NoneType' object is not callable\n```\n\nProbably these tests now are partially overlap with the CI tests. I think we should investigate this and merge tests or just run `deccheck.py` as part of CPython test suite.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-155198\n* gh-155261\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/skirpichev","@type":"Person","name":"skirpichev"},"datePublished":"2026-05-13T04:02:53Z","url":"https://github.com/python/cpython/issues/149755"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:6bb7586d-9a0b-16f6-3ecb-46d29c13fd5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CDF0:16AB79:373EB27:464094A:6B01EEDF |
| html-safe-nonce | 3ba436503de15592a854d7e85a153ab702d1ed4a915e511e1e17d8a5ed15c57e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDREYwOjE2QUI3OTozNzNFQjI3OjQ2NDA5NEE6NkIwMUVFREYiLCJ2aXNpdG9yX2lkIjoiNDg3ODUwMTIzNDE2OTk5OTA3MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3be1345021c0ded68e17bea1ac71c636a84a5439718f28971a8440cf0512c37 |
| hovercard-subject-tag | issue:4434677161 |
| 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/149755/issue_layout |
| twitter:image | https://opengraph.githubassets.com/03f2a81b7f902c368db3b9c364b3892642d8da66d318e839a0848c884ac51134/python/cpython/issues/149755 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/03f2a81b7f902c368db3b9c364b3892642d8da66d318e839a0848c884ac51134/python/cpython/issues/149755 |
| og:image:alt | This is a follow-up of #115119. The bench.py script already partially integrated to the pyperformance, see python/pyperformance#473. The Modules/_decimal/tests/deccheck.py currently is broken. Even... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | skirpichev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| 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 | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width