[pypy-commit] pypy numpypy-complex2: add test that should fail, but not like it does
mattip
noreply at buildbot.pypy.org
Sun Aug 26 22:41:20 CEST 2012
Author: mattip <matti.picus at gmail.com>
Branch: numpypy-complex2
Changeset: r56874:f6814d1a8a90
Date: 2012-08-26 23:40 +0300
http://bitbucket.org/pypy/pypy/changeset/f6814d1a8a90/
Log: add test that should fail, but not like it does
diff --git a/pypy/module/micronumpy/test/test_ufuncs.py b/pypy/module/micronumpy/test/test_ufuncs.py
--- a/pypy/module/micronumpy/test/test_ufuncs.py
+++ b/pypy/module/micronumpy/test/test_ufuncs.py
@@ -855,9 +855,10 @@
def test_complex(self):
- from _numpypy import (array, complex128, complex64, add, subtract as sub, multiply,
- divide, negative, conjugate, conj, abs)
- from _numpypy import equal, not_equal, greater, greater_equal, less, less_equal
+ from _numpypy import (array, complex128, complex64, add,
+ subtract as sub, multiply, divide, negative, conjugate, abs, fmod)
+ from _numpypy import (equal, not_equal, greater, greater_equal, less,
+ less_equal)
for complex_ in complex128, complex64:
@@ -909,7 +910,8 @@
assert abs(c0) == 2.5
assert abs(c2) == 5
-
+
+ raises (TypeError, fmod, c0, 3)
def test_complex_math(self):
More information about the pypy-commit
mailing list