Ticket #10773: trac_10773-fix_maxima_version.patch

File trac_10773-fix_maxima_version.patch, 1.2 KB (added by fbissey, 9 years ago)

Fixing the doctests with hardcoded version of maxima

  • sage/interfaces/maxima.py

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1297586110 -46800
    # Node ID e6bcec431af06252e01c6e702e466d9c30dd2211
    # Parent  0541f14f5d7f603efb75bfe0e8c6eff0cd0f5ae5
    tarc #10773: We are updating maxima to 5.23.2. So we need to fix all test where maxima's version is hardcoded.
    
    diff -r 0541f14f5d7f -r e6bcec431af0 sage/interfaces/maxima.py
    a b  
    12661266        EXAMPLES::
    12671267       
    12681268            sage: maxima.version()
    1269             '5.22.1'
     1269            '5.23.2'
    12701270        """
    12711271        return maxima_version()
    12721272
     
    27962796   
    27972797        sage: from sage.interfaces.maxima import maxima_console
    27982798        sage: maxima_console()                    # not tested
    2799         Maxima 5.22.1 http://maxima.sourceforge.net
     2799        Maxima 5.23.2 http://maxima.sourceforge.net
    28002800        ...
    28012801    """
    28022802    os.system('maxima')
     
    28072807   
    28082808        sage: from sage.interfaces.maxima import maxima_version
    28092809        sage: maxima_version()
    2810         '5.22.1'
     2810        '5.23.2'
    28112811    """
    28122812    return os.popen('maxima --version').read().split()[-1]
    28132813