This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author boisgerault
Recipients
Date 2005-04-29.17:36:31
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
The doctest ELLPSIS marker (default: "...") may be
confused by the doctest parser with the multiline
statement marker ("..."). 

Example: in the following code, the intent was to accept
any result after "print 42". This is NOT a multiline
statement,
but however the test fails (Expected: nothing, Got: 42).

----------------------------------------
#!/usr/bin/env python

import doctest

def test():
    """
    >>> print 42 #doctest: +ELLIPSIS
    ...
    """

def run():
    "Run the test."
    doctest.testmod()

if __name__ == '__main__':
    run()

---------------------------------------- 
History
Date User Action Args
2007-08-23 14:31:18adminlinkissue1192554 messages
2007-08-23 14:31:18admincreate