chore: test testcases with @unittest.skip decorator - #5871
Conversation
Signed-off-by: Lee Dogeon <dev.moreal@gmail.com>
WalkthroughSeveral Python standard library test files were updated to change how RustPython-specific issues are handled. Tests previously skipped due to RustPython panics or unimplemented features are now either marked as expected failures or have their skip decorators removed, allowing them to run. Comments indicating known RustPython issues were added or retained. Changes
Poem
π Recent review detailsConfiguration used: CodeRabbit UI π Files selected for processing (6)
π€ Files with no reviewable changes (3)
π§° Additional context usedπ Path-based instructions (2)`Lib/**/*`: Files in the Lib/ directory (Python standard library copied from CPy...
π Source: CodeRabbit Inference Engine (.github/copilot-instructions.md) List of files the instruction was applied to:
`Lib/test/**/*`: Tests in Lib/test often use markers such as '# TODO: RUSTPYTHON...
π Source: CodeRabbit Inference Engine (.github/copilot-instructions.md) List of files the instruction was applied to:
π§ Learnings (4)π Common learningsLib/test/test_cmd_line.py (7)Lib/test/test_io.py (4)undefined <retrieved_learning> <retrieved_learning> <retrieved_learning> <retrieved_learning> Lib/test/test_ast.py (6)undefined <retrieved_learning> <retrieved_learning> <retrieved_learning> <retrieved_learning> <retrieved_learning> <retrieved_learning> 𧬠Code Graph Analysis (1)Lib/test/test_cmd_line.py (1)
β° Context from checks skipped due to timeout of 90000ms (11)
π Additional comments (6)
β¨ Finishing Touches
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. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
youknowone
left a comment
There was a problem hiding this comment.
π Thank you!
If you are looking for long-running prompt, I am building one.
https://gist.github.com/youknowone/7ec4d248e2064da23d87ccde20ceaa9b
Oh, thank you for sharing it! ππ»ββοΈ |
This pull request replaces the
@unittest.skipdecorator with@unittest.expectedFailurefor test cases that are no longer failing due to panic. And, if the test case is no longer failing, their@unittest.skipdecorators are just unmarked.Claude Code prompt (Korean)
@Lib/test νμμ μλ ν μ€νΈλ€μ€ `@unittest.skip` μΌλ‘ λ§νΉλμ΄ μκ³ λ©μμ§λ‘ 'panicked'λ₯Ό ν¬ν¨νκ³ μλ κ²λ€μ κ³¨λΌ λ§νΉμ νλμ© ν΄μ ν΄λ³΄κ³ μ€μ λ‘ ν¨λμ΄ λ°μνλμ§ νμΈνλ €κ³ ν©λλ€. λ§μ½ ν¨λμ΄ λ°μνμ§ μκ³ κ·Έμ μ€ν¨νλ€λ©΄ `# TODO: RUSTPYTHON\n@unittest.expectedFailure`λ‘ κ΅μ²΄ν΄μΌ ν©λλ€. `cargo run -q -- -m test --list-cases test.test_ast` κΌ΄λ‘ μ 체 ν μ€νΈ λͺ©λ‘μ κ°μ Έμ¬ μ μκ³ , `cargo run -q -- -m unittest ` κΌ΄λ‘ νΉμ ν μ€νΈλ₯Ό μ€νν΄λ³Ό μ μμ΅λλ€. μ°μ νμΈ ν΄λ³Ό ν μ€νΈ μΌμ΄μ€λ₯Ό μ‘°μ¬νμ¬ PLAN.mdμ 체ν¬λ¦¬μ€νΈλ‘ κΈ°λ‘νμ¬ μ£Όμμμ€.Summary by CodeRabbit