xfail_type = pytest.mark.xfail(strict=True, raises=TypeError)
xfail_type_py3 = pytest.mark.xfail(strict=True, raises=TypeError)
-
+ # some systems (32 bit arches) do not have numpy.float128
+ try:
+ test_float128 = numpy.float128(42.0)
+ except AttributeError:
+ test_float128 = numpy.longdouble(42.0)
@pytest.mark.parametrize("operand",
[int(42), 42.0, numpy.sin(1.0), numpy.float(42.0),
numpy.float64(42.0), numpy.float_(42.0),
numpy.int(42.0), numpy.long(42.0),
numpy.float16(42.0), numpy.float16(42.0),
- numpy.float32(42.0), numpy.float128(42.0),
+ numpy.float32(42.0), test_float128,
numpy.longfloat(42.0), numpy.int8(42.0),
numpy.int16(42.0), numpy.int32(42.0),
numpy.intc(42.0), numpy.longdouble(42.0),