Commits

Romain Guillebert committed 8d499d0

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

  • Participants
  • Parent commits 6e26567

Comments (0)

Files changed (1)

pypy/module/micronumpy/test/test_complex.py

                                    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