Skip to content

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
@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