feat: Sync code.py + test_code_module.py from CPython v3.13.1#6181
Conversation
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including You can disable this status message by setting the 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 |
Sorry, something went wrong.
|
@ntvinh2005 tysm for the PR:) |
Sorry, something went wrong.
|
Will do it, thanks a lot for your response. |
Sorry, something went wrong.
|
I believe you can use the following command to test your changes locally: # this runs all of the tests (not necessary if you know which test is affected)
cargo run --release --features ssl,jit -- -m test -j 1 -u all --slowest --fail-env-changed -v
# this runs only the test suite named "test_whatever" (usually located at `Lib/test/test_whatever.py`)
cargo run --release --features ssl,jit -- -m test -j 1 -u all --slowest --fail-env-changed -v test_whateverFor a list of all resources and more command-line options, you can execute |
Sorry, something went wrong.
|
@ntvinh2005 Thank you for contributing! Since code.rs is also recently update, please rebase it on the top of upstream/main. (Otherwise merge is also fine) For the failing tests, you don't need to actually fix the bugs; please add To update code.py, don't forget to also update |
Sorry, something went wrong.
a624c0b to
f811e7b
Compare
December 30, 2025 07:18
2cd18e5 to
1951705
Compare
December 30, 2025 16:29
ca1c4c1
into
RustPython:main
Dec 30, 2025
This PR updates RustPython’s stdlib
code.pyand its associated teststest_code_module.pyto match CPython v3.13.1.cargo run -- -m test -v test_code_module
• SyntaxError wording
• IndentationError wording
• Unicode error mismatch
• Traceback formatting difference
As per #5529, I’m submitting the updated files as-is. Follow-up issues can be filed for the failing cases.