Update some tests from 3.13.7#6108
Conversation
WalkthroughUpdates ignore patterns in .gitignore. Adjusts unicodedata::name to emit a different ValueError message when no name is found with a default provided. Removes the Python-exposed is_integer method from PyInt, retaining an internal const version; bit_count remains unchanged. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
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. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
Status, Documentation and Community
|
Sorry, something went wrong.
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (1)
.gitignore (1)
24-28: Clarify ignore depth and anchor patterns for Lib/site-packages and Lib/test/dataIf the intent is to ignore everything under these directories recursively (not just direct children), prefer anchoring to repo root and using
**. Keeps the single README files tracked.Would you like these patterns to apply recursively? If yes, apply:
-Lib/site-packages/* -!Lib/site-packages/README.txt -Lib/test/data/* -!Lib/test/data/README +/Lib/site-packages/** +!/Lib/site-packages/README.txt +/Lib/test/data/** +!/Lib/test/data/README
📜 Review details
Configuration used: Path: .coderabbit.yml
Review profile: CHILL
Plan: Pro
💡 Knowledge Base configuration:
- MCP integration is disabled by default for public repositories
- Jira integration is disabled by default for public repositories
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (35)
Lib/test/data/READMEis excluded by!Lib/**Lib/test/dtracedata/assert_usable.dis excluded by!Lib/**Lib/test/dtracedata/assert_usable.stpis excluded by!Lib/**Lib/test/dtracedata/call_stack.dis excluded by!Lib/**Lib/test/dtracedata/call_stack.d.expectedis excluded by!Lib/**Lib/test/dtracedata/call_stack.pyis excluded by!Lib/**Lib/test/dtracedata/call_stack.stpis excluded by!Lib/**Lib/test/dtracedata/call_stack.stp.expectedis excluded by!Lib/**Lib/test/dtracedata/gc.dis excluded by!Lib/**Lib/test/dtracedata/gc.d.expectedis excluded by!Lib/**Lib/test/dtracedata/gc.pyis excluded by!Lib/**Lib/test/dtracedata/gc.stpis excluded by!Lib/**Lib/test/dtracedata/gc.stp.expectedis excluded by!Lib/**Lib/test/dtracedata/instance.pyis excluded by!Lib/**Lib/test/dtracedata/line.dis excluded by!Lib/**Lib/test/dtracedata/line.d.expectedis excluded by!Lib/**Lib/test/dtracedata/line.pyis excluded by!Lib/**Lib/test/pythoninfo.pyis excluded by!Lib/**Lib/test/site-packages/README.txtis excluded by!Lib/**Lib/test/support/hypothesis_helper.pyis excluded by!Lib/**Lib/test/test_binascii.pyis excluded by!Lib/**Lib/test/test_cmath.pyis excluded by!Lib/**Lib/test/test_contextlib.pyis excluded by!Lib/**Lib/test/test_hashlib.pyis excluded by!Lib/**Lib/test/test_long.pyis excluded by!Lib/**Lib/test/test_math.pyis excluded by!Lib/**Lib/test/test_math_property.pyis excluded by!Lib/**Lib/test/test_opcache.pyis excluded by!Lib/**Lib/test/test_optparse.pyis excluded by!Lib/**Lib/test/test_property.pyis excluded by!Lib/**Lib/test/test_ucn.pyis excluded by!Lib/**Lib/test/test_unicodedata.pyis excluded by!Lib/**Lib/test/translationdata/argparse/msgids.txtis excluded by!Lib/**Lib/test/translationdata/getopt/msgids.txtis excluded by!Lib/**Lib/test/translationdata/optparse/msgids.txtis excluded by!Lib/**
📒 Files selected for processing (3)
.gitignore(1 hunks)stdlib/src/unicodedata.rs(1 hunks)vm/src/builtins/int.rs(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.rs
📄 CodeRabbit inference engine (.github/copilot-instructions.md)
**/*.rs: Follow the default rustfmt code style (cargo fmtto format)
Always run clippy to lint code (cargo clippy) before completing tasks. Fix any warnings or lints that are introduced by your changes
Follow Rust best practices for error handling and memory management
Use the macro system (pyclass,pymodule,pyfunction, etc.) when implementing Python functionality in Rust
Files:
stdlib/src/unicodedata.rsvm/src/builtins/int.rs
🧬 Code graph analysis (1)
vm/src/builtins/int.rs (2)
compiler/literal/src/float.rs (1)
is_integer(25-27)vm/src/builtins/float.rs (1)
is_integer(480-482)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
- GitHub Check: Run snippets and cpython tests on wasm-wasi
- GitHub Check: Check the WASM package and demo
- GitHub Check: Run snippets and cpython tests (ubuntu-latest)
- GitHub Check: Run tests under miri
- GitHub Check: Run snippets and cpython tests (macos-latest)
- GitHub Check: Run snippets and cpython tests (windows-latest)
- GitHub Check: Check Rust code with rustfmt and clippy
- GitHub Check: Run rust tests (windows-latest)
- GitHub Check: Run rust tests (ubuntu-latest)
- GitHub Check: Run rust tests (macos-latest)
- GitHub Check: Ensure compilation on various targets
🔇 Additional comments (2)
stdlib/src/unicodedata.rs (1)
148-149: LGTM: ValueError message updated to match CPython behaviorReturning the provided default when no name is found, and otherwise raising
ValueError("no such name")aligns with CPython’s expectations forunicodedata.name.vm/src/builtins/int.rs (1)
693-693: bit_count remains correctly exposed
bit_count()implementation is consistent with Python’s API and semantics.
Sorry, something went wrong.
youknowone
left a comment
There was a problem hiding this comment.
Thanks!
Sorry, something went wrong.
dae9584
into
RustPython:main
Aug 24, 2025
I can split this PR if it's too big
Summary by CodeRabbit