#12893: Increase doctest coverage in sage/coding/linear_code.py to 100%
------------------------------------------------+---------------------------
       Reporter:  benjaminfjones                |         Owner:  mvngu       
           Type:  enhancement                   |        Status:  needs_review
       Priority:  minor                         |     Milestone:  sage-5.1    
      Component:  documentation                 |    Resolution:              
       Keywords:  linear code doctest coverage  |   Work issues:              
Report Upstream:  N/A                           |     Reviewers:              
        Authors:  Benjamin Jones                |     Merged in:              
   Dependencies:                                |      Stopgaps:              
------------------------------------------------+---------------------------

Comment (by was):

 Could you fix these errors (possibly not caused by you)?
 {{{
 wstein@sage:sage-5.0.beta15-boxen-x86_64-Linux$ ./sage -t --optional
 devel/sage/sage/coding/linear_code.py sage -t --optional
 "devel/sage/sage/coding/linear_code.py"
 **********************************************************************
 File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/devel/sage/sage/coding/linear_code.py",
 line 1992:
     sage: C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava
 Exception raised:
     Traceback (most recent call last):
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_49[21]>", line 1, in <module>
         C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava###line 1992:
     sage: C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/misc/decorators.py", line 687, in wrapper
         return func(*args, **kwds)
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/coding/linear_code.py", line 2033, in
 permutation_automorphism_group
         A = gap("MatrixAutomorphisms(matCwt)")
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/interfaces/interface.py", line 198, in __call__
         return cls(self, x, name=name)
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/interfaces/expect.py", line 1331, in __init__
         raise TypeError, x
     TypeError: Gap produced error output
     Error, no 1st choice method found for `MatrixAutomorphisms' on 1
 arguments

        executing $sage24:=MatrixAutomorphisms(matCwt);;
 **********************************************************************
 File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/devel/sage/sage/coding/linear_code.py",
 line 1995:
     sage: C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava
 Exception raised:
     Traceback (most recent call last):
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/ncadoctest.py",
 line 1231, in run_one_test
         self.run_one_example(test, example, filename, compileflags)
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/sagedoctest.py",
 line 38, in run_one_example
         OrigDocTestRunner.run_one_example(self, test, example, filename,
 compileflags)
       File
 
"/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/bin/ncadoctest.py",
 line 1172, in run_one_example
         compileflags, 1) in test.globs
       File "<doctest __main__.example_49[23]>", line 1, in <module>
         C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava###line 1995:
     sage: C.permutation_automorphism_group(algorithm="gap")  # requires
 optional GAP package Guava
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/misc/decorators.py", line 687, in wrapper
         return func(*args, **kwds)
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/coding/linear_code.py", line 2033, in
 permutation_automorphism_group
         A = gap("MatrixAutomorphisms(matCwt)")
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/interfaces/interface.py", line 198, in __call__
         return cls(self, x, name=name)
       File
 "/scratch/wstein/ref/sage-5.0.beta15-boxen-x86_64-Linux/local/lib/python
 /site-packages/sage/interfaces/expect.py", line 1331, in __init__
         raise TypeError, x
     TypeError: Gap produced error output
     Error, no 1st choice method found for `MatrixAutomorphisms' on 1
 arguments

        executing $sage26:=MatrixAutomorphisms(matCwt);;
 **********************************************************************
 1 items had failures:
    2 of  25 in __main__.example_49
 ***Test Failed*** 2 failures.
 For whitespace errors, see the file
 /home/wstein/.sage//tmp/linear_code_4858.py
          [14.8 s]

 ----------------------------------------------------------------------
 The following tests failed:


         sage -t --optional "devel/sage/sage/coding/linear_code.py"
 Total time for all tests: 14.9 seconds
 (sage-sh) wstein@sage:sage-5.0.beta15-boxen-x86_64-Linux$
 }}}

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/12893#comment:4>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to