Commit 63a81578 authored by Stefan Behnel's avatar Stefan Behnel

Fix constant folding test in Py2.

parent df3efb3e
......@@ -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
......
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