2
0
mirror of https://github.com/boostorg/python.git synced 2026-01-27 07:02:15 +00:00

Fixed unsigned long test error.

This commit is contained in:
Christoph Lassner
2014-10-09 09:42:34 +02:00
committed by Jim Bosch
parent 73b8350e53
commit bc13c4c600

View File

@@ -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))