Title: Restore ten guarded C API test modules by youknowdot · Pull Request #9505 · RustPython/RustPython · GitHub
Open Graph Title: Restore ten guarded C API test modules by youknowdot · Pull Request #9505 · RustPython/RustPython
X Title: Restore ten guarded C API test modules by youknowdot · Pull Request #9505 · RustPython/RustPython
Description: Summary Restore ten whole test_capi modules from pinned CPython 3.15 (d220409a13b77de7a6c30abe16ea90db01528edc) through the actual scripts/update_lib migrate command: Canonical byte-identical: test_file, test_object, test_run, test_set, test_slots, test_tuple, test_complex, test_float. test_codecs: use the existing optional import helper for _testcapi before the unchanged _testlimitedcapi gate. test_getargs: bind the genuinely required getargs_keywords and getargs_keyword_only through existing support.get_attribute. A partial fixture such as #9143 lacks these APIs; this raises a real capability skip rather than an import failure. The unchanged complex/float sibling imports propagate that skip. All class/function bodies, decorators and assertions remain canonical. No new skip decorators, xfails, fake fixtures or global test-disable switches are introduced. This is source restoration, not implementation of these C API fixtures. The package still has 22 missing canonical files afterward. Tooling consolidation The import-binding rewrite extension has been removed. This PR now contains only the ten whole test files, unchanged from their prior reviewed bytes. The existing migrate --patches preservation blocks reproduce both adapted files exactly without another import-rewrite framework. Updater implementation changes are consolidated in #9578. The existing hold remains: do not add these tests before #9270 lands. Current consolidation validation All ten Lib/ files are byte-identical to the prior PR head. The remaining host updater suite passes: 233 tests. Normal configured commit hooks pass. A temporary-directory check reproduced both adapted whole modules byte-for-byte using the existing preservation-block path and verified their class/function ASTs against pinned CPython. No C API tests were executed. Prior validation below is historical, not a new runtime result. Original validation (before tooling removal) Reproduced on main 88f373357f40923c7b1bb533072e7962790e2663; all 17 original parent-file bytes were checked against their PR heads. Host updater suite: 241 tests passed, independently rechecked with Python 3.13 and 3.12. Actual candidate updater generated all ten modules. Eight canonical byte identities, two exact reviewed metadata adaptations, and full class/function/decorator/assertion AST equality were verified. Normal configured commit hooks passed; final 13-file hashes and reviewed diff were unchanged afterward. Following an execution-environment reset, the private reviewed patch and metadata were recovered byte-for-byte from preserved artifacts. The newly generated files exactly match the historical Python 3.15 migration output hashes. Current selected-source parsing/tooling checks used Python 3.13; no fresh Python 3.15 runtime or full dependency-graph validation is claimed. Limits and future activation No C API test module was imported or executed locally, and no Rust/native build or full interpreter suite was run for this source-only cohort. Missing-fixture skips in ordinary builds are not C API behavioral passes or complete CPython compatibility. If a future _testcapi provides both getargs entry points, re-review the subsequent constants, eager class-body getargs_positional_only_and_keywords import and remaining parser APIs before activation. Introducing _testlimitedcapi similarly requires separate review of NULL/invalid arguments, refcounts, mutation, GC/finalizer and subprocess paths. Existing bodies are preserved, not claimed safe or supported by module presence alone. AI assistance OpenAI Codex assisted source investigation, updater implementation, migration, recovery and validation, with independent agent review. The runtime model version is unavailable. This reports tool/source evidence, not human manual validation or unexecuted native compatibility checks.
Open Graph Description: Summary Restore ten whole test_capi modules from pinned CPython 3.15 (d220409a13b77de7a6c30abe16ea90db01528edc) through the actual scripts/update_lib migrate command: Canonical byte-identical: tes...
X Description: Summary Restore ten whole test_capi modules from pinned CPython 3.15 (d220409a13b77de7a6c30abe16ea90db01528edc) through the actual scripts/update_lib migrate command: Canonical byte-identical: tes...
Opengraph URL: https://github.com/RustPython/RustPython/pull/9505
X: @github
Domain: github.com
| 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 | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:ffae9c6b-2736-0990-02b7-e72a529cd8e9 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E05A:2270F4:339D0B3:4476868:6B01F37B |
| html-safe-nonce | 94d96355b04e1e37a623d8b2bbe6104faf9462eb9d7a037d9187348b3b4a424f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMDVBOjIyNzBGNDozMzlEMEIzOjQ0NzY4Njg6NkIwMUYzN0IiLCJ2aXNpdG9yX2lkIjoiNDkxNjM5MTY3MTg3ODUxMzUzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 76f8789db81d57ec16abc11be7eefb4fa036d05e74ee93a2d02b7b5ffaaf05ec |
| hovercard-subject-tag | pull_request:5102519283 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/RustPython/RustPython/pull/9505/files |
| twitter:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/336763669?s=400&v=4 |
| og:image:alt | Summary Restore ten whole test_capi modules from pinned CPython 3.15 (d220409a13b77de7a6c30abe16ea90db01528edc) through the actual scripts/update_lib migrate command: Canonical byte-identical: tes... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/RustPython/RustPython git https://github.com/RustPython/RustPython.git |
| octolytics-dimension-user_id | 39710557 |
| octolytics-dimension-user_login | RustPython |
| octolytics-dimension-repository_id | 135201145 |
| octolytics-dimension-repository_nwo | RustPython/RustPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 135201145 |
| octolytics-dimension-repository_network_root_nwo | RustPython/RustPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| 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 |
Links:
Viewport: width=device-width