Skip to content

Commit 9155c18

Browse files
author
Matthias Koeppe
committed
sage.structure: Update # needs
1 parent a3b9d24 commit 9155c18

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

src/sage/structure/parent.pyx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ TESTS:
8686
8787
This came up in some subtle bug once::
8888
89-
sage: gp(2) + gap(3) # needs sage.libs.pari
89+
sage: gp(2) + gap(3) # needs sage.libs.gap sage.libs.pari
9090
5
9191
"""
9292
# ****************************************************************************
@@ -1685,16 +1685,18 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
16851685
....: D[tuple(nk)] = v
16861686
....: return a.parent()(D)
16871687
1688+
sage: # needs sage.groups
16881689
sage: R.<x, y, z> = QQ['x, y, z']
1689-
sage: G = SymmetricGroup(3) # needs sage.groups
1690-
sage: act = SymmetricGroupAction(G, R) # needs sage.groups
1690+
sage: G = SymmetricGroup(3)
1691+
sage: act = SymmetricGroupAction(G, R)
16911692
sage: t = x + 2*y + 3*z
16921693
1693-
sage: act(G((1, 2)), t) # needs sage.groups
1694+
sage: # needs sage.groups
1695+
sage: act(G((1, 2)), t)
16941696
2*x + y + 3*z
1695-
sage: act(G((2, 3)), t) # needs sage.groups
1697+
sage: act(G((2, 3)), t)
16961698
x + 3*y + 2*z
1697-
sage: act(G((1, 2, 3)), t) # needs sage.groups
1699+
sage: act(G((1, 2, 3)), t)
16981700
3*x + y + 2*z
16991701
17001702
This should fail, since we have not registered the left
@@ -1707,9 +1709,10 @@ cdef class Parent(sage.structure.category_object.CategoryObject):
17071709
17081710
Now let's make it work::
17091711
1710-
sage: R._unset_coercions_used() # needs sage.groups
1711-
sage: R.register_action(act) # needs sage.groups
1712-
sage: G((1, 2)) * t # needs sage.groups
1712+
sage: # needs sage.groups
1713+
sage: R._unset_coercions_used()
1714+
sage: R.register_action(act)
1715+
sage: G((1, 2)) * t
17131716
2*x + y + 3*z
17141717
"""
17151718
if self._coercions_used:

0 commit comments

Comments
 (0)