From bc13c4c600dba019c744dd1d6621e38897fae208 Mon Sep 17 00:00:00 2001 From: Christoph Lassner Date: Thu, 9 Oct 2014 09:42:34 +0200 Subject: [PATCH] Fixed unsigned long test error. --- libs/numpy/test/dtype.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/numpy/test/dtype.py b/libs/numpy/test/dtype.py index 4dadb80a..a280cc3a 100644 --- a/libs/numpy/test/dtype.py +++ b/libs/numpy/test/dtype.py @@ -49,7 +49,7 @@ class DtypeTestCase(unittest.TestCase): c = numpy.complex128 self.assertEquivalent(dtype_mod.accept_float64(f(numpy.pi)), numpy.dtype(f)) self.assertEquivalent(dtype_mod.accept_complex128(c(1+2j)), numpy.dtype(c)) - if hasattr(numpy, "longdouble"): + if hasattr(numpy, "longdouble") and hasattr(dtype_mod, "accept_longdouble"): f = numpy.longdouble c = numpy.clongdouble self.assertEquivalent(dtype_mod.accept_longdouble(f(numpy.pi)), numpy.dtype(f))