Author: Romain Guillebert <[email protected]>
Branch: 
Changeset: r66163:8d499d0d72d5
Date: 2013-08-15 17:06 +0200
http://bitbucket.org/pypy/pypy/changeset/8d499d0d72d5/

Log:    Add a test for the conversion of numpy complex to python complex

diff --git a/pypy/module/micronumpy/test/test_complex.py 
b/pypy/module/micronumpy/test/test_complex.py
--- a/pypy/module/micronumpy/test/test_complex.py
+++ b/pypy/module/micronumpy/test/test_complex.py
@@ -685,3 +685,8 @@
                                    msg=error_message)
                 sys.stderr.write('.')
             sys.stderr.write('\n')
+
+    def test_complexbox_to_pycomplex(self):
+        from numpypy import complex128
+        x = complex128(3.4j)
+        assert complex(x) == 3.4j
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to