Re: doctest's ELLIPSIS

2005-05-02 Thread Sébastien Boisgérault
(Forwarded from Python bug tracker) [ 1192554 ] doctest's ELLIPSIS and multiline statements Tim Peters: [...] doctest has few syntax requirements, but the inability to start an expected output block with "..." has always been one of them, and is independent of the ELLIPSIS gimmick

Re: doctest's ELLIPSIS

2005-04-29 Thread Sébastien Boisgérault
Done. -- http://mail.python.org/mailman/listinfo/python-list

Re: doctest's ELLIPSIS

2005-04-29 Thread Michele Simionato
I would file a bug report/documentation bug/feature request or whatever to sourceforge. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: doctest's ELLIPSIS

2005-04-29 Thread Sébastien Boisgérault
Doh ! Obviously ... too bad. I guess that I could set doctest.ELLIPSIS_MARKER to "[...]" to distinguish the two usages of "...". (The "..." used for multiline statements is hard-coded into a regular expression pattern). But it feels too hackish, ELLIPSIS_MATKER being not described in the docs ..

Re: doctest's ELLIPSIS

2005-04-29 Thread Michele Simionato
I think doctest believes the line starting with ... is a continuation line in a multiline statement. -- http://mail.python.org/mailman/listinfo/python-list

doctest's ELLIPSIS

2005-04-29 Thread Sébastien Boisgérault
Hi, Can anybody come up with a sensible argument that would explain why the following test should fail ? (Expected: nothing, Got: 42). cheers, S.B. #!/usr/bin/env python import doctest def test(): """ >>> print 42 #doctest: +ELLIPSIS ...