Update enum from CPython 3.15.0rc2 - #8942
Draft
youknowdot wants to merge 1 commit into
Draft
youknowdot wants to merge 1 commit into
youknowdot wants to merge 1 commit into
Conversation
Sync enum and its regression tests from CPython v3.15.0rc2 (435c9e5a798c99653e3ab64ce29baed0e4f3dfee). Preserve the two existing RustPython expected-failure decorators. Keep this first migration slice limited to enum without changing the declared Python target or native runtime. AI assistance: Codex/OpenAI reconstructed the upstream sync, reviewed the diff, and ran validation. The runtime did not expose the exact model version. Assisted-by: Codex:model-version-unavailable
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Contributor
📦 Library DependenciesThe following Lib/ modules were modified. Here are their dependencies: [ ] lib: cpython/Lib/enum.py dependencies:
dependent tests: (16 tests)
Legend:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Sync
Lib/enum.pyand its regression tests from CPython v3.15.0rc2 (435c9e5a798c99653e3ab64ce29baed0e4f3dfee). This first, isolated 3.15 migration slice brings upstream negative Flag handling, Flag member visibility indir(), and public exports without changing RustPython's declared Python target or native runtime.enum.pyis identical to the pinned upstream source. The two existing RustPython expected-failure decorators are preserved intest_enum.py; no new skips or expected failures are added.Validation
Validated on Linux against base
be3d12e96c17a8b5e879e0d28980961f91c83258before creating the preserved commit:cargo run --locked --release -- -m test test_enum test_json test_argparse: 3,199 tests, 9 skippedcargo test --locked --workspace --exclude rustpython_wasm --exclude rustpython-venvlauncher --exclude rustpython-capi: 1,344 passed, 18 ignored(cd crates/capi && cargo test --locked): 112 passedcargo clippy --locked: passed without warningsgit diff --checkand comparison with the pinned CPython source passedThis is a draft. Cross-platform validation and hosted CI remain to be verified. An earlier
test_rerun encountered baseline locale/AF_UNIX environment failures; that module is not claimed as passing here.AI assistance
Codex/OpenAI performed the upstream synchronization/reconstruction, diff review, validation, and PR preparation. The execution runtime did not expose an exact model version. The commit preserves the disclosure and
Assisted-by: Codex:model-version-unavailabletrailer.