-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update some tests from 3.13.7 #6108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
b4d086b
Update `test_opcache.py`
ShaharNaveh 713cb70
Update test_optparse.py
ShaharNaveh c0b3cc9
Add some missing folders & test files
ShaharNaveh 933db10
Update `test_long.py` and impl "is_integer" for int
ShaharNaveh 2de2053
Update `support/hypothesis_helper.py` from 3.13.7
ShaharNaveh fa3ecba
Update test_binascii
ShaharNaveh 7e03ec7
Update test_math
ShaharNaveh 1fbd1cd
Add `test_math_property.py`
ShaharNaveh d825541
Update `test_property.py` from 3.13.7
ShaharNaveh 6a232a8
Update `test_cmath.py` from 3.13.7
ShaharNaveh 61bc6e8
Unmark passing tests
ShaharNaveh d28164c
Update `test_ucn.py` from 3.13.7
ShaharNaveh 6cb00e2
Mark failing tests
ShaharNaveh e7c8796
Add `site-packages` dir
ShaharNaveh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update
test_long.py and impl "is_integer" for int
- Loading branch information
commit 933db1075fe9007cf1bf7bda9287ba718c87c806
There are no files selected for viewing
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
Do not expose
int.is_integer()to Pythonintin CPython does not have anis_integer()method; exposing it breaks compatibility and likely contradicts the updated tests. If you need this helper internally, keep it as a non-#[pymethod]function in a non-pyclass impl block; otherwise, remove it.Apply this diff to stop exporting it to Python:
Optionally, if an internal helper is desired elsewhere in the crate, add (outside the
#[pyclass] impl):Run to confirm nothing else exposes
is_integerforint:🏁 Script executed:
Length of output: 501
To ensure we didn’t miss any Python-exposed
is_integermethods or references, let’s rerun with a corrected regex:🏁 Script executed:
Length of output: 264
Remove Python exposure of
int.is_integer()The
#[pymethod] const fn is_integer(&self) -> bool { … }on lines 688–689 ofvm/src/builtins/int.rsis still being exposed to Python. In CPython,inthas nois_integer()method, so this breaks compatibility.Please apply the following diff to stop exporting it:
If you still need this helper internally, add it outside the
#[pyclass] implas a plain Rust method:🤖 Prompt for AI Agents