Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
added # optional gap_packages to fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Brandhorst committed Feb 6, 2018
1 parent 23f489a commit 59b11ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/sage/groups/abelian_gps/abelian_group_gap.py
Expand Up @@ -698,13 +698,13 @@ def __init__(self, ambient, gens):
Check that we are in the correct category::
sage: G = AbelianGroupGap([2,3,0])
sage: g = G.gens()
sage: H1 = G.subgroup([g[0],g[1]])
sage: H1 in Groups().Finite()
sage: G = AbelianGroupGap([2,3,0]) # optional - gap_packages
sage: g = G.gens() # optional - gap_packages
sage: H1 = G.subgroup([g[0],g[1]]) # optional - gap_packages
sage: H1 in Groups().Finite() # optional - gap_packages
True
sage: H2 = G.subgroup([g[0],g[2]])
sage: H2 in Groups().Infinite()
sage: H2 = G.subgroup([g[0],g[2]]) # optional - gap_packages
sage: H2 in Groups().Infinite() # optional - gap_packages
True
"""
gens_gap = tuple([g.gap() for g in gens])
Expand Down

0 comments on commit 59b11ed

Please sign in to comment.