Skip to content

changed int_max_str_digits from -1 to 4300 to be more cpython complient #5343

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 2 commits into from
Jun 27, 2024

Conversation

JamesClarke7283
Copy link
Contributor

A basic fix, which changes sys.flags.int_max_str_digits to 4300 instead of -1 so it behaves the same as the cpython implementation. Fixes #5139

PS: this is my first issue and I am new here, do let me know if I missed anything.

@JamesClarke7283
Copy link
Contributor Author

Why did the test_cmd_line test fail?

Strange, I only changed one number, to meet the spec.

@youknowone
Copy link
Member

youknowone commented Jun 25, 2024

You need to look in each test details to get more idea.

UNEXPECTED SUCCESS: test_int_max_str_digits (test.test_cmd_line.CmdLineTest.test_int_max_str_digits)

You actually fixed it!
Please remove the top expectedFailure decorator to mark it successful test.

@JamesClarke7283
Copy link
Contributor Author

@youknowone checks have passed, think this can be merged. :)

@youknowone youknowone merged commit e142d65 into RustPython:main Jun 27, 2024
11 checks passed
@youknowone
Copy link
Member

Thank you!

@JamesClarke7283 JamesClarke7283 deleted the int-max-str-digits-fix branch June 27, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sys.flags.int_max_str_digits is not -1
3 participants