Thanks. This worked.

On Sun 13 Jul 2014 08:13:37 PM SGT, Volker Braun wrote:
sage -t --optional=sage,gap_packages src/sage/coding



On Sunday, July 13, 2014 7:52:32 AM UTC-4, P Purkayastha wrote:

    I am trying to doctest the coding folder with the optional
    gap_packages. But it seems to skip the statements without the "#
    optional" statement. The result of it is that the optional tests
    are all failing. Here is an output:

    |
    ...allations/sage-git [128]»sage -t --optional=gap_packages
    src/sage/coding
    Runningdoctests withID 2014-07-13-19-47-19-ba9f5690.
    Doctesting17files.
    sage -t src/sage/coding/binary_code.pyx
    [0tests,0.01s]
    sage -t src/sage/coding/decoder.py
    [0tests,0.00s]
    sage -t src/sage/coding/codes_catalog.py
    [0tests,0.00s]
    sage -t src/sage/coding/code_constructions.py
    [0tests,0.00s]
    sage -t src/sage/coding/sd_codes.py
    [0tests,0.00s]
    sage -t src/sage/coding/all.py
    [0tests,0.00s]
    sage -t src/sage/coding/delsarte_bounds.py
    [0tests,0.00s]
    sage -t src/sage/coding/linear_code.py
    **********************************************************************
    File"src/sage/coding/linear_code.py",line
    371,insage.coding.linear_code.min_wt_vec_gap
    Failedexample:

    sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2),algorithm="guava")#
    optional - gap_packages (Guava package)
    Exceptionraised:
    Traceback(most recent call last):
    
File"/home/punarbasu/Installations/sage-git/local/lib/python2.7/site-packages/sage/doctest/forker.py",line
    480,in_run
    self.execute(example,compiled,test.globs)
    
File"/home/punarbasu/Installations/sage-git/local/lib/python2.7/site-packages/sage/doctest/forker.py",line
    839,inexecute
    execcompiled inglobs
    File"<doctest sage.coding.linear_code.min_wt_vec_gap[0]>",line
    1,in<module>

    
sage.coding.linear_code.min_wt_vec_gap(Gstr,Integer(7),Integer(4),GF(Integer(2)),algorithm="guava")#
    optional - gap_packages (Guava package)
    NameError:name 'Gstr'isnotdefined
    **********************************************************************
    |

    This shouldn't fail because 'Gstr' is defined all right in the
    actual file:

    |
        EXAMPLES::


            sage:Gstr="Z(2)*[[1,1,1,0,0,0,0], [1,0,0,1,1,0,0],
    [0,1,0,1,0,1,0], [1,1,0,1,0,0,1]]"
            sage:sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2))
    (0,1,0,1,0,1,0)


    Thisoutput isdifferent but still a minimum weight vector::



    
sage:sage.coding.linear_code.min_wt_vec_gap(Gstr,7,4,GF(2),algorithm="guava")#
    optional - gap_packages (Guava package)
    (0,0,1,0,1,1,0)
    |

    Also, note that the files preceding "linear_code.py" all report "0
    tests", which doesn't make any sense.

    Is there some other argument I must provide with --optional?

--
You received this message because you are subscribed to a topic in the
Google Groups "sage-devel" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/sage-devel/qAI57GFh02k/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
[email protected]
<mailto:[email protected]>.
To post to this group, send email to [email protected]
<mailto:[email protected]>.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.


--
You received this message because you are subscribed to the Google Groups 
"sage-devel" 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 http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to