#20107: Add optional gap3_jm package
-------------------------------------+-------------------------------------
       Reporter:  stumpc5            |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  major              |    Milestone:  sage-7.1
      Component:  packages:          |   Resolution:
  optional                           |    Merged in:
       Keywords:  gap3, optional     |    Reviewers:
  package                            |  Work issues:
        Authors:  Christian Stump    |       Commit:
Report Upstream:  N/A                |  50aac0ea3726079c240e2fb7ccc7bca6e2713132
         Branch:  u/stumpc5/20107    |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by stumpc5):

 Replying to [comment:91 jdemeyer]:
 > {{{
 > sage -t src/sage/interfaces/gap3.py
 > }}}

 These doctests actually also did not work before either: I installed gap3
 myself and made it start on the command-line using the command {{{gap3}}}.
 I then did
 {{{
 $ sage -t src/sage/interfaces/gap3.py
 too few successful tests, not using stored timings
 Running doctests with ID 2016-03-25-15-51-57-0530368e.
 Git branch: findstat/main
 Using --optional=dot2tex,mpir,python2,sage,scons
 Doctesting 1 file.
 sage -t src/sage/interfaces/gap3.py
     [12 tests, 6.03 s]
 ----------------------------------------------------------------------
 All tests passed!
 ----------------------------------------------------------------------
 Total time for all tests: 6.2 seconds
     cpu time: 0.2 seconds
     cumulative wall time: 6.0 seconds
 }}}
 and then
 {{{
 $ sage -t --optional=dot2tex,mpir,python2,sage,scons,gap3,chevie
 src/sage/interfaces/gap3.py
 too few successful tests, not using stored timings
 Running doctests with ID 2016-03-25-15-52-25-c372d3dc.
 Git branch: findstat/main
 Using --optional=chevie,dot2tex,gap3,mpir,python2,sage,scons
 Doctesting 1 file.
 sage -t src/sage/interfaces/gap3.py
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 174, in sage.interfaces.gap3
 Failed example:
     gap3.RequirePackage('"chevie"')             #optional - gap3 chevie
 Expected:
     W...  to  the  CHEVIE  package, ...
 Got:
     <BLANKLINE>
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 397, in
 sage.interfaces.gap3.Gap3._execute_line
 Failed example:
     f([1,2,3])                                   #optional - gap3
 Expected:
     Traceback (most recent call last):
     ...
     RuntimeError: Gap3 produced error output
     Error, List Element: <position> must be a positive integer at
     return L[0] ... in
     ... called from
     main loop
     brk> quit;
     ...
 Got:
     <BLANKLINE>
     Traceback (most recent call last):
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.interfaces.gap3.Gap3._execute_line[3]>", line 1,
 in <module>
         f([Integer(1),Integer(2),Integer(3)])
 #optional - gap3
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/interface.py", line 805, in __call__
         return getattr(P, self.name())(*args)
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/interface.py", line 607, in __call__
         return self._parent.function_call(self._name, list(args), kwds)
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/gap.py", line 894, in function_call
         ['%s=%s'%(key,value.name()) for key, value in kwds.items()])))
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/gap.py", line 569, in eval
         result = Expect.eval(self, input_line, **kwds)
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/expect.py", line 1244, in eval
         for L in code.split('\n') if L != ''])
       File "/home/stumpc5/progs/sage/local/lib/python2.7/site-
 packages/sage/interfaces/gap.py", line 767, in _eval_line
         raise RuntimeError(message)
     RuntimeError: Gap3 produced error output
     Error, Function: <function> must be a function
     <BLANKLINE>
        executing x(sage0);
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 444, in
 sage.interfaces.gap3.Gap3.help
 Failed example:
     m                                        #optional - gap3
 Expected:
     [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
 Got:
     <BLANKLINE>
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 446, in
 sage.interfaces.gap3.Gap3.help
 Failed example:
     m.Print()                                #optional - gap3
 Expected:
     [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
 Got:
     "__SAGE_LAST__"
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 450, in
 sage.interfaces.gap3.Gap3.help
 Failed example:
     m                                        #optional - gap3
 Expected:
     [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
 Got:
     <BLANKLINE>
 **********************************************************************
 File "src/sage/interfaces/gap3.py", line 452, in
 sage.interfaces.gap3.Gap3.help
 Failed example:
     m.Print()                                #optional - gap3
 Expected:
     [ [ 1, 2, 3 ], [ 4, 5, 6 ] ]
 Got:
     "__SAGE_LAST__"
 **********************************************************************
 3 items had failures:
    1 of  34 in sage.interfaces.gap3
    1 of   5 in sage.interfaces.gap3.Gap3._execute_line
    4 of  10 in sage.interfaces.gap3.Gap3.help
     [107 tests, 6 failures, 4.20 s]
 ----------------------------------------------------------------------
 sage -t src/sage/interfaces/gap3.py  # 6 doctests failed
 ----------------------------------------------------------------------
 Total time for all tests: 4.4 seconds
     cpu time: 0.8 seconds
     cumulative wall time: 4.2 seconds
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20107#comment:94>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to