diff options
-rw-r--r-- | numpy/core/tests/test_scalarmath.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/numpy/core/tests/test_scalarmath.py b/numpy/core/tests/test_scalarmath.py index 6b74a20bb..078114dae 100644 --- a/numpy/core/tests/test_scalarmath.py +++ b/numpy/core/tests/test_scalarmath.py @@ -15,6 +15,11 @@ types = [N.bool_, N.byte, N.ubyte, N.short, N.ushort, N.intc, N.uintc, class test_types(NumpyTestCase): def check_types(self, level=1): + for atype in types: + a = atype(1) + assert a == 1, "error with %r: got %r" % (atype,a) + + def check_type_add(self, level=1): # list of types for k, atype in enumerate(types): vala = atype(3) |