summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
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)