summaryrefslogtreecommitdiff
path: root/numpy/linalg/tests
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/linalg/tests')
-rw-r--r--numpy/linalg/tests/test_linalg.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py
index 5c6142b7b..60486d4ce 100644
--- a/numpy/linalg/tests/test_linalg.py
+++ b/numpy/linalg/tests/test_linalg.py
@@ -868,10 +868,7 @@ class _TestNorm(object):
assert_almost_equal(an, 0.0)
an = norm(at, 0)
- # Trying to assert equality to `np.dtype(int).type` fails on
- # 32-bit platforms as it still becomes `np.int64` instead of
- # `np.int32`. So, this is our workaround.
- assert_(an.dtype.type in [np.int32, np.int64])
+ assert_(issubclass(an.dtype.type, np.floating))
assert_almost_equal(an, 2)
an = norm(at, 1)