From 07800e53ea335bc64514e9b4b0a5e5711fd39684 Mon Sep 17 00:00:00 2001 From: Julian Taylor Date: Fri, 5 Aug 2016 00:38:56 +0200 Subject: BUG: fix float16 type not being called due to wrong ordering closes gh-7897 --- numpy/linalg/tests/test_linalg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numpy/linalg/tests') diff --git a/numpy/linalg/tests/test_linalg.py b/numpy/linalg/tests/test_linalg.py index 60486d4ce..a89378acd 100644 --- a/numpy/linalg/tests/test_linalg.py +++ b/numpy/linalg/tests/test_linalg.py @@ -877,11 +877,11 @@ class _TestNorm(object): an = norm(at, 2) assert_(issubclass(an.dtype.type, np.floating)) - assert_almost_equal(an, 2.0**(1.0/2.0)) + assert_almost_equal(an, an.dtype.type(2.0)**an.dtype.type(1.0/2.0)) an = norm(at, 4) assert_(issubclass(an.dtype.type, np.floating)) - assert_almost_equal(an, 2.0**(1.0/4.0)) + assert_almost_equal(an, an.dtype.type(2.0)**an.dtype.type(1.0/4.0)) an = norm(at, np.inf) assert_(issubclass(an.dtype.type, np.floating)) -- cgit v1.2.1