summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorDavid Cournapeau <cournape@gmail.com>2009-10-30 10:54:53 +0000
committerDavid Cournapeau <cournape@gmail.com>2009-10-30 10:54:53 +0000
commita30e0201fb5bd194d021dafecc8f4353ff8f04d0 (patch)
treef8902cc3955280e5e0d243e9961eaab5968ae23a /numpy/testing/utils.py
parentef0441c420b6d9118791a137392d46f38e5c2122 (diff)
downloadnumpy-a30e0201fb5bd194d021dafecc8f4353ff8f04d0.tar.gz
BUG: wrong exception raised in spacing for incompatible dtype.
Diffstat (limited to 'numpy/testing/utils.py')
-rw-r--r--numpy/testing/utils.py2
1 files changed, 0 insertions, 2 deletions
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)