sympy/sympy-float.patch
2018-06-27 22:02:27 -06:00

25 lines
1.1 KiB
Diff

--- sympy-sympy-1.1.1/sympy/core/tests/test_sympify.py.orig 2017-07-26 16:46:51.000000000 -0600
+++ sympy-sympy-1.1.1/sympy/core/tests/test_sympify.py 2018-06-27 08:19:06.815713759 -0600
@@ -582,8 +582,6 @@ def test_numpy():
assert equal(sympify(np.float32(1.123456)), Float(1.123456, precision=24))
assert equal(sympify(np.float64(1.1234567891234)),
Float(1.1234567891234, precision=53))
- assert equal(sympify(np.longdouble(1.123456789)),
- Float(1.123456789, precision=80))
assert equal(sympify(np.complex64(1 + 2j)), S(1.0 + 2.0*I))
assert equal(sympify(np.complex128(1 + 2j)), S(1.0 + 2.0*I))
assert equal(sympify(np.longcomplex(1 + 2j)), S(1.0 + 2.0*I))
@@ -594,12 +592,6 @@ def test_numpy():
except AttributeError: #float96 does not exist on all platforms
pass
- try:
- assert equal(sympify(np.float128(1.123456789123)),
- Float(1.123456789123, precision=80))
- except AttributeError: #float128 does not exist on all platforms
- pass
-
@XFAIL
def test_sympify_rational_numbers_set():