Skip to content

Commit e142d65

Browse files
changed int_max_str_digits from -1 to 4300 to be more cpython complient (RustPython#5343)
* changed int_max_str_digits from -1 to 4300 to be more cpython complient, fixes RustPython#5139
1 parent a620b38 commit e142d65

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Lib/test/test_cmd_line.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,8 +928,6 @@ def test_parsing_error(self):
928928
self.assertTrue(proc.stderr.startswith(err_msg), proc.stderr)
929929
self.assertNotEqual(proc.returncode, 0)
930930

931-
# TODO: RUSTPYTHON
932-
@unittest.expectedFailure
933931
def test_int_max_str_digits(self):
934932
code = "import sys; print(sys.flags.int_max_str_digits, sys.get_int_max_str_digits())"
935933

vm/src/vm/setting.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ impl Default for Settings {
151151
check_hash_pycs_mode: "default".to_owned(),
152152
allow_external_library: cfg!(feature = "importlib"),
153153
utf8_mode: 1,
154-
int_max_str_digits: -1,
154+
int_max_str_digits: 4300,
155155
#[cfg(feature = "flame-it")]
156156
profile_output: None,
157157
#[cfg(feature = "flame-it")]

0 commit comments

Comments
 (0)