Skip to content

Commit 10d2838

Browse files
committed
Only use small moduli
1 parent 26847c7 commit 10d2838

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/flint/test/test_all.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1639,17 +1639,13 @@ def test_fmpz_mod():
16391639
from flint import fmpz_mod_ctx, fmpz, fmpz_mod
16401640

16411641
p_sml = 163
1642-
p_med = 2**127 - 1
1643-
p_big = 2**255 - 19
1644-
1642+
p_med = 167
1643+
p_big = 173
16451644

16461645
F_cmp = fmpz_mod_ctx(10)
16471646
F_sml = fmpz_mod_ctx(p_sml)
1648-
F_big = fmpz_mod_ctx(p_big)
1649-
return
16501647
F_med = fmpz_mod_ctx(p_med)
1651-
1652-
# XXX: crashes by here
1648+
F_big = fmpz_mod_ctx(p_big)
16531649

16541650
assert F_sml.is_prime() is True
16551651
assert F_med.is_prime() is True

0 commit comments

Comments
 (0)