diff --git a/tests/test_functions.py b/tests/test_functions.py index cceab97e..dc63a7d9 100644 --- a/tests/test_functions.py +++ b/tests/test_functions.py @@ -142,6 +142,7 @@ def test_mpmath_normalize(sign, man, exp, prec, rnd): sign = int(sign) bc = mman.bit_length() res = mpmath.libmp.libmpf._normalize(sign, man, exp, bc, prec, rnd) + assert all(type(_) is int for _ in res) assert _mpmath_normalize(sign, mman, exp, bc, prec, rnd) == res @@ -154,6 +155,7 @@ def test_mpmath_create(man, exp, prec, rnd): mpmath = pytest.importorskip("mpmath") mman = mpz(man) res = mpmath.libmp.from_man_exp(man, exp, prec, rnd) + assert all(type(_) is int for _ in res) assert _mpmath_create(mman, exp, prec, rnd) == res assert mman == man assert _mpmath_create(man, exp, prec, rnd) == res diff --git a/tests/test_mpz.py b/tests/test_mpz.py index 1f490819..03632716 100644 --- a/tests/test_mpz.py +++ b/tests/test_mpz.py @@ -513,8 +513,6 @@ def test_divmod_bulk(x, y): with pytest.raises(ZeroDivisionError): x % my return - if y < 0 and platform.python_implementation() == "GraalVM": - return # issue oracle/graalpython#534 r = x // y assert mx // my == r assert mx // y == r