Add regression test

Closes #274
This commit is contained in:
Sergey B Kirpichev
2023-04-07 10:15:12 +03:00
parent c7690bbc45
commit 425858e06b
+6
View File
@@ -2386,3 +2386,9 @@ def test_bessel_zeros_extra():
def test_issue_569():
r = betainc(1, 2, 1, 1)
assert isinstance(r, mp.mpf) and r == 0
def test_issue_274():
pytest.importorskip("gmpy2")
with pytest.raises(ValueError):
mp.fraction(1, 100).func(1000, 0xdead)