Commit c02c6df2 authored by Mark Dickinson's avatar Mark Dickinson

Issue #19638: Skip large digit string tests on 32-bit platforms.

parent c2f8c81a
......@@ -251,6 +251,9 @@ class StrtodTests(unittest.TestCase):
@test_support.bigmemtest(minsize=5 * test_support._1G, memuse=1)
def test_oversized_digit_strings(self, maxsize):
if sys.maxsize <= 0x7fffffff:
self.skipTest("Only applies on 64-bit systems.")
# Input string whose length doesn't fit in an INT.
s = "1." + "1" * int(2.2e9)
with self.assertRaises(ValueError):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment