Author: mattip <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to