Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a04f4e03
Commit
a04f4e03
authored
Nov 26, 2013
by
Mark Dickinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use @bigmemtest more accurately.
parent
c93329b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Lib/test/test_strtod.py
Lib/test/test_strtod.py
+3
-3
No files found.
Lib/test/test_strtod.py
View file @
a04f4e03
...
...
@@ -248,15 +248,15 @@ class StrtodTests(unittest.TestCase):
else
:
assert
False
,
"expected ValueError"
@
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
)
def
test_oversized_digit_strings
(
self
,
maxsize
):
# Input string whose length doesn't fit in an INT.
s
=
"1."
+
"1"
*
int
(
2.2e9
)
s
=
"1."
+
"1"
*
maxsize
with
self
.
assertRaises
(
ValueError
):
float
(
s
)
del
s
s
=
"0."
+
"0"
*
int
(
2.2e9
)
+
"1"
s
=
"0."
+
"0"
*
maxsize
+
"1"
with
self
.
assertRaises
(
ValueError
):
float
(
s
)
del
s
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment