From a30e0201fb5bd194d021dafecc8f4353ff8f04d0 Mon Sep 17 00:00:00 2001 From: David Cournapeau Date: Fri, 30 Oct 2009 10:54:53 +0000 Subject: BUG: wrong exception raised in spacing for incompatible dtype. --- numpy/testing/utils.py | 2 -- 1 file changed, 2 deletions(-) (limited to 'numpy/testing/utils.py') diff --git a/numpy/testing/utils.py b/numpy/testing/utils.py index 871ae9b35..0cd8ccada 100644 --- a/numpy/testing/utils.py +++ b/numpy/testing/utils.py @@ -1215,8 +1215,6 @@ def spacing(x, dtype=None): raise NotImplementerError("_compute_spacing not implemented for complex array") t = x.dtype - if not t in [np.float32, np.float64]: - raise ValueError("Could not convert both arrays to supported type") res = integer_repr(x) return (res + 1).view(t) - res.view(t) -- cgit v1.2.1