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
b430e4fd
Commit
b430e4fd
authored
Aug 27, 2001
by
Tim Peters
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix another test still expecting overflow on big int literals.
parent
ae6a60ab
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
Lib/test/test_grammar.py
Lib/test/test_grammar.py
+2
-7
No files found.
Lib/test/test_grammar.py
View file @
b430e4fd
...
@@ -37,10 +37,7 @@ if maxint == 2147483647:
...
@@ -37,10 +37,7 @@ if maxint == 2147483647:
try
:
try
:
x
=
eval
(
s
)
x
=
eval
(
s
)
except
OverflowError
:
except
OverflowError
:
continue
print
"OverflowError on huge integer literal "
+
`s`
## raise TestFailed, \
print
\
'No OverflowError on huge integer literal '
+
`s`
elif
eval
(
'maxint == 9223372036854775807'
):
elif
eval
(
'maxint == 9223372036854775807'
):
if
eval
(
'-9223372036854775807-1 != 01000000000000000000000'
):
if
eval
(
'-9223372036854775807-1 != 01000000000000000000000'
):
raise
TestFailed
,
'max negative int'
raise
TestFailed
,
'max negative int'
...
@@ -51,9 +48,7 @@ elif eval('maxint == 9223372036854775807'):
...
@@ -51,9 +48,7 @@ elif eval('maxint == 9223372036854775807'):
try
:
try
:
x
=
eval
(
s
)
x
=
eval
(
s
)
except
OverflowError
:
except
OverflowError
:
continue
print
"OverflowError on huge integer literal "
+
`s`
raise
TestFailed
,
\
'No OverflowError on huge integer literal '
+
`s`
else
:
else
:
print
'Weird maxint value'
,
maxint
print
'Weird maxint value'
,
maxint
...
...
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