summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bradshaw <robertwb@gmail.com>2013-12-26 13:03:45 -0800
committerRobert Bradshaw <robertwb@gmail.com>2013-12-26 13:03:45 -0800
commit2cd00ebcbdd784a8e7641becbdc293fb78a84ffd (patch)
tree1466675c3bf752650e1535a79eca513c2fcfbf36
parentbfad2820f5243e7ca022715071132bc6a687a645 (diff)
downloadcython-2cd00ebcbdd784a8e7641becbdc293fb78a84ffd.tar.gz
Complex int division not well defined.
It's sensitive to compiler implementation.
-rw-r--r--tests/run/complex_int_T446.pyx8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/run/complex_int_T446.pyx b/tests/run/complex_int_T446.pyx
index 956ea8eb2..a6f6aac2d 100644
--- a/tests/run/complex_int_T446.pyx
+++ b/tests/run/complex_int_T446.pyx
@@ -8,13 +8,13 @@ cdef extern from "complex_int_T446_fix.h":
def test_arith(int complex a, int complex b):
"""
>>> test_arith(4, 2)
- ((-4+0j), (6+0j), (2+0j), (8+0j), (2+0j))
+ ((-4+0j), (6+0j), (2+0j), (8+0j))
>>> test_arith(6+9j, 3j)
- ((-6-9j), (6+12j), (6+6j), (-27+18j), (3-2j))
+ ((-6-9j), (6+12j), (6+6j), (-27+18j))
>>> test_arith(29+11j, 5+7j)
- ((-29-11j), (34+18j), (24+4j), (68+258j), (3-2j))
+ ((-29-11j), (34+18j), (24+4j), (68+258j))
"""
- return -a, a+b, a-b, a*b, a/b
+ return -a, a+b, a-b, a*b
@cython.cdivision(False)
def test_div_by_zero(long complex z):