Debian Codegraph @

pypy/module/micronumpy/test/test_appbridge.py

raw symbols SCIP
1 from pypy.module.micronumpy.test.test_base import BaseNumpyAppTest
2
3
4 class AppTestAppBridge(BaseNumpyAppTest):
5 def test_array_methods(self):
6 import numpy as np
7 a = np.array(1.5)
8 for op in [a.mean, a.var, a.std]:
9 try:
10 op()
11 except ImportError as e:
12 assert str(e) == 'No module named numpy.core'
13
14 def test_dtype_commastring(self):
15 import numpy as np
16 try:
17 d = np.dtype('u4,u4,u4')
18 except ImportError as e:
19 assert str(e) == 'No module named numpy.core'