Skip to content

Commit c66f4b7

Browse files
authored
fix a doctest error in gap/element.pyx
1 parent c31155a commit c66f4b7

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/sage/libs/gap/element.pyx

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2480,16 +2480,9 @@ cdef class GapElement_Function(GapElement):
24802480
GAPError: Error, no method found!
24812481
Error, no 1st choice method found for `SumOp' on 2 arguments
24822482
2483-
sage: for i in range(100):
2484-
....: rnd = [ randint(-10,10) for i in range(randint(0,7)) ]
2485-
....: # compute the sum in GAP
2486-
....: _ = libgap.Sum(rnd)
2487-
....: try:
2488-
....: libgap.Sum(*rnd)
2489-
....: print('This should have triggered a ValueError')
2490-
....: print('because Sum needs a list as argument')
2491-
....: except ValueError:
2492-
....: pass
2483+
sage: rnd=[1,2,3]
2484+
sage: libgap.Sum(rnd)
2485+
6
24932486
24942487
sage: libgap_exec = libgap.eval("Exec")
24952488
sage: libgap_exec('echo hello from the shell')

0 commit comments

Comments
 (0)