2020-01-09 02:22:18 +00:00
|
|
|
--- sympy-sympy-1.5/sympy/core/tests/test_numbers.py.orig 2020-01-02 11:38:59.879596198 -0700
|
|
|
|
+++ sympy-sympy-1.5/sympy/core/tests/test_numbers.py 2020-01-02 11:39:41.195632401 -0700
|
|
|
|
@@ -1981,11 +1981,6 @@ def test_numpy_to_float():
|
|
|
|
check_prec_and_relerr(np.float16(2.0/3), Rational(2, 3))
|
|
|
|
check_prec_and_relerr(np.float32(2.0/3), Rational(2, 3))
|
|
|
|
check_prec_and_relerr(np.float64(2.0/3), Rational(2, 3))
|
2019-04-18 01:55:21 +00:00
|
|
|
- # extended precision, on some arch/compilers:
|
|
|
|
- x = np.longdouble(2)/3
|
2020-01-09 02:22:18 +00:00
|
|
|
- check_prec_and_relerr(x, Rational(2, 3))
|
2019-04-18 01:55:21 +00:00
|
|
|
- y = Float(x, precision=10)
|
2020-01-09 02:22:18 +00:00
|
|
|
- assert same_and_same_prec(y, Float(Rational(2, 3), precision=10))
|
2019-04-18 01:55:21 +00:00
|
|
|
|
|
|
|
raises(TypeError, lambda: Float(np.complex64(1+2j)))
|
|
|
|
raises(TypeError, lambda: Float(np.complex128(1+2j)))
|
2020-01-09 02:22:18 +00:00
|
|
|
--- sympy-sympy-1.5/sympy/core/tests/test_sympify.py.orig 2019-12-07 19:06:10.000000000 -0700
|
|
|
|
+++ sympy-sympy-1.5/sympy/core/tests/test_sympify.py 2020-01-02 11:38:59.881596200 -0700
|
|
|
|
@@ -602,8 +602,6 @@ def test_sympify_numpy():
|
2018-06-28 04:02:27 +00:00
|
|
|
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))
|
2020-01-09 02:22:18 +00:00
|
|
|
@@ -612,10 +610,6 @@ def test_sympify_numpy():
|
2019-04-18 01:14:40 +00:00
|
|
|
if hasattr(np, 'float96'):
|
|
|
|
assert equal(sympify(np.float96(1.123456789)),
|
|
|
|
Float(1.123456789, precision=80))
|
|
|
|
- #float128 does not exist on all platforms
|
|
|
|
- if hasattr(np, 'float128'):
|
2018-06-28 04:02:27 +00:00
|
|
|
- assert equal(sympify(np.float128(1.123456789123)),
|
|
|
|
- Float(1.123456789123, precision=80))
|
2019-04-18 01:14:40 +00:00
|
|
|
|
2018-06-28 04:02:27 +00:00
|
|
|
|
|
|
|
@XFAIL
|