sympy/sympy-gmpy2-mpq.patch

12 lines
525 B
Diff

--- a/sympy/external/tests/test_pythonmpq.py 2021-09-30 16:23:28.000000000 -0600
+++ b/sympy/external/tests/test_pythonmpq.py 2021-10-08 11:06:59.453830335 -0600
@@ -42,7 +42,7 @@ def test_PythonMPQ():
assert check_Q(Q(Q(3, 5))) == (3, 5)
assert check_Q(Q(0.5)) == (1, 2)
assert check_Q(Q('0.5')) == (1, 2)
- assert check_Q(Q(Decimal('0.6'))) == (3, 5)
+ assert check_Q(Q(str(Decimal('0.6')))) == (3, 5)
assert check_Q(Q(Fraction(3, 5))) == (3, 5)
# Invalid types