Skip to content

Commit

Permalink
fix (possibly) failing doctests πŸ“–
Browse files Browse the repository at this point in the history
  • Loading branch information
grhkm21 committed Feb 10, 2024
1 parent bbb2786 commit 929d0e6
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/sage/schemes/elliptic_curves/ell_finite_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ def multiplication_by_p_isogeny(self):
sage: p = 23
sage: K.<a> = GF(p^3)
sage: E = EllipticCurve(K, [K.random_element(), K.random_element()])
sage: E = EllipticCurve(j=K.random_element())
sage: phi = E.multiplication_by_p_isogeny()
sage: assert phi.degree() == p**2
sage: P = E.random_element()
Expand Down Expand Up @@ -1791,13 +1791,7 @@ def twists(self):
sage: p = next_prime(randrange(2,100))
sage: e = randrange(1,10)
sage: F.<t> = GF((p,e))
sage: while True:
....: try:
....: E = EllipticCurve([F.random_element() for _ in range(5)])
....: except ArithmeticError:
....: pass
....: else:
....: break
sage: E = EllipticCurve(j=F.random_element())
sage: twists1 = E.twists()
sage: {sum(E1.is_isomorphic(E2) for E2 in twists1) == 1 for E1 in twists1}
{True}
Expand Down

0 comments on commit 929d0e6

Please sign in to comment.