feat: Sync code.py + test_code_module.py from CPython v3.13.1#6181
feat: Sync code.py + test_code_module.py from CPython v3.13.1#6181youknowone merged 2 commits intoRustPython:mainfrom
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 |
|
@ntvinh2005 tysm for the PR:) |
|
Will do it, thanks a lot for your response. |
|
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 |
|
@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 |
a624c0b to
f811e7b
Compare
2cd18e5 to
1951705
Compare
|
trying merge first as partially prior work for #6595 |
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.