We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 06ff8ca + 89fd613 commit c1bcf87Copy full SHA for c1bcf87
1 file changed
src/flint/test/test_all.py
@@ -4461,7 +4461,11 @@ def test_fq_default_poly():
4461
assert raises(lambda: f.compose_mod(g, R_test.zero()), ZeroDivisionError)
4462
4463
# inverse_mod
4464
- f = R_test.random_element()
+ while True:
4465
+ # Ensure f is invertible
4466
+ f = R_test.random_element()
4467
+ if not f.constant_coefficient().is_zero():
4468
+ break
4469
while True:
4470
h = R_test.random_element()
4471
if f.gcd(h).is_one():
0 commit comments