Commits

Romain Guillebert committed 9a5d859

Add a test for the character dtype (PyPy issue 1546)

  • Participants
  • Parent commits ce1c1b2

Comments (0)

Files changed (1)

pypy/module/micronumpy/test/test_dtypes.py

         from numpypy import unicode_
         assert isinstance(unicode_(3), unicode)
 
+    def test_character_dtype(self):
+        from numpypy import array, character
+        x = array([["A", "B"], ["C", "D"]], character)
+        assert x == [["A", "B"], ["C", "D"]]
+
 class AppTestRecordDtypes(BaseNumpyAppTest):
     spaceconfig = dict(usemodules=["micronumpy", "struct", "binascii"])
     def test_create(self):