Ticket #9212: trac-9212-fix-doctests.patch

File trac-9212-fix-doctests.patch, 927 bytes (added by jason, 11 years ago)

apply on top of previous patches

  • sage/misc/sagedoc.py

    # HG changeset patch
    # User Jason Grout <jason-sage@creativetrax.com>
    # Date 1276547683 18000
    # Node ID 310ac9faae259f40b22ad38146cdfd4551a299e4
    # Parent  b203dfa08ec442ab1e9dbc10ecfdb8b5d9d03d35
    #9212: Fix a doctest
    
    diff -r b203dfa08ec4 -r 310ac9faae25 sage/misc/sagedoc.py
    a b  
    10861086
    10871087        sage: browse_sage_doc._open("reference", testing=True)[0]  # indirect doctest
    10881088        'http://localhost:8000/doc/live/reference/index.html'
    1089         sage: browse_sage_doc(identity_matrix, 'rst')[-60:-5]
    1090         'MatrixSpace of 3 by 3 sparse matrices over Integer Ring'
     1089        sage: browse_sage_doc(identity_matrix, 'rst')[-107:-47]
     1090        'Full MatrixSpace of 3 by 3 sparse matrices over Integer Ring'
    10911091    """
    10921092    def __init__(self):
    10931093        self._base_url = "http://localhost:8000/doc/live/"