Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython · GitHub
Open Graph Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython
X Title: Fix some pyo3 testcase against the c-api by bschoenmaeckers · Pull Request #8349 · RustPython/RustPython
Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the imported module object from the runtime module registry (so submodule attributes are accessible). Fixed wrapping of static Rust functions so no-argument functions are handled correctly. Corrected attribute-existence checks to match Python hasattr results. Added a clearer error when requesting capsule context from a capsule with a null pointer. Prevented capsule destructor callbacks from running when the capsule pointer is null. Tests Added coverage for submodule importing, static no-arg wrapping, hasattr behavior, and invalid capsule context/destructor cases.
Open Graph Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe...
X Description: Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe...
Opengraph URL: https://github.com/RustPython/RustPython/pull/8349
X: @github
Domain: Github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:9d46a45c-528c-5ec3-3022-dc566c7f9b3d |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C56C:3BEA31:242B345:31F2ACC:6A631C36 |
| html-safe-nonce | 80f892b1049ac613fd44099491795c9128e92bf077ab1ed62ff8d822e077f6f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNTZDOjNCRUEzMToyNDJCMzQ1OjMxRjJBQ0M6NkE2MzFDMzYiLCJ2aXNpdG9yX2lkIjoiMjk5MzUyNDIyNjM1NDUxOTA5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | bf6291d1c1bdd26deaf9ee509df5e2980a5aa772a5cda0d036906850ed38c811 |
| hovercard-subject-tag | pull_request:4110310598 |
| 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/8349/files |
| twitter:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7943856?s=400&v=4 |
| og:image:alt | Found some bugs while running pyo3 test-suite against our implementation. Copied relevant testcases and fixed them. Summary by CodeRabbit Bug Fixes Improved import behavior to return the importe... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6c056e02f174fffc096c521ec0ff6fb83e40a2ec8cb8875466ec1524872dd6 |
| 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 | 6a93e25585f487ddff9e3996c06d5b869d6e1828 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width