Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c93329b commit a04f4e0Copy full SHA for a04f4e0
1 file changed
Lib/test/test_strtod.py
@@ -248,15 +248,15 @@ def test_parsing(self):
248
else:
249
assert False, "expected ValueError"
250
251
- @test.support.bigmemtest(size=5 * test.support._1G, memuse=1, dry_run=False)
+ @test.support.bigmemtest(size=test.support._2G+10, memuse=4, dry_run=False)
252
def test_oversized_digit_strings(self, maxsize):
253
# Input string whose length doesn't fit in an INT.
254
- s = "1." + "1" * int(2.2e9)
+ s = "1." + "1" * maxsize
255
with self.assertRaises(ValueError):
256
float(s)
257
del s
258
259
- s = "0." + "0" * int(2.2e9) + "1"
+ s = "0." + "0" * maxsize + "1"
260
261
262
0 commit comments