Skip to content

whitespace error in doctest causes A Mysterious Error. #7993

@wjp

Description

@wjp
mannequin

When doctesting a file a.sage containing

def foo():
    """
    sage: 1+1
   2
    """
    pass

(note the missing space before the 2), you get:

[wjp@issa sage-4.3.1.rc0]$ ./sage -t a.sage
sage -t  "a.sage"                                           
A mysterious error (perhaps a memory error?) occurred, which may have crashed doctest.
         [2.4 s]
exit code: 768
 
----------------------------------------------------------------------
The following tests failed:


        sage -t  "a.sage"
Total time for all tests: 2.4 seconds

Component: doctest coverage

Author: Willem Jan Palenstijn

Reviewer: Paul Zimmermann

Merged: sage-4.3.4.alpha1

Issue created by migration from https://trac.sagemath.org/ticket/7993

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions