Commits

Maciej Fijalkowski committed 15cfdca

enable even more tests on -A

  • Participants
  • Parent commits 6a5df76
  • Branches numpy-back-to-applevel

Comments (0)

Files changed (2)

pypy/module/micronumpy/test/test_base.py

             if '__pypy__' not in sys.builtin_module_names:
                 import numpy
                 sys.modules['numpypy'] = numpy
+                sys.modules['_numpypy'] = numpy
         cls.space = gettestobjspace(usemodules=['micronumpy'])
 
 class TestSignature(object):

pypy/module/micronumpy/test/test_dtypes.py

     def test_repr_str(self):
         from _numpypy import dtype
 
-        assert repr(dtype) == "<type 'numpypy.dtype'>"
+        assert '.dtype' in repr(dtype)
         d = dtype('?')
         assert repr(d) == "dtype('bool')"
         assert str(d) == "bool"