Skip to content

Commit 731fb08

Browse files
committed
Use int for PyPy
1 parent 7303d73 commit 731fb08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/flint/test/test_all.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2938,7 +2938,7 @@ def setbad(obj, i, val):
29382938
assert (1 + x).pow_mod(2**127, x - 1) == pow(2, 2**127, int(characteristic))
29392939

29402940
if type(x) is not flint.fq_default_poly:
2941-
assert (1 + x).pow_mod(2**127, x - 1, S(1)/2) == pow(2, 2**127, characteristic)
2941+
assert (1 + x).pow_mod(2**127, x - 1, S(1)/2) == pow(2, 2**127, int(characteristic))
29422942
assert raises(lambda: (1 + x).pow_mod(2**127, x - 1, []), TypeError)
29432943

29442944
assert raises(lambda: (1 + x).pow_mod(4, []), TypeError)

0 commit comments

Comments
 (0)