Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
63a81578
Commit
63a81578
authored
Aug 09, 2018
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix constant folding test in Py2.
parent
df3efb3e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
tests/run/constant_folding.py
tests/run/constant_folding.py
+12
-1
No files found.
tests/run/constant_folding.py
View file @
63a81578
...
...
@@ -5,6 +5,17 @@
import
cython
import
sys
IS_PY2
=
sys
.
version_info
<
(
3
,
0
)
def
print_big_ints
(
t
):
s
=
repr
(
t
)
if
IS_PY2
:
s
=
s
.
replace
(
'L'
,
''
)
print
(
s
)
@
cython
.
test_fail_if_path_exists
(
"//UnaryMinusNode"
,
"//UnaryPlusNode"
,
...
...
@@ -115,7 +126,7 @@ def binop_bool():
)
def
binop_mul_pow
():
"""
>>>
binop_mul_pow(
)
>>>
print_big_ints(binop_mul_pow()
)
(800, 12193263111263526900, 248832, 12467572902176589255564000298710470656)
"""
mul_int
=
20
*
40
...
...
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