(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. I doubt this
Done.
--
http://mail.python.org/mailman/listinfo/python-list
I would file a bug report/documentation bug/feature
request or whatever to sourceforge.
Michele Simionato
--
http://mail.python.org/mailman/listinfo/python-list
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 ..
I think doctest believes the line starting with ... is
a continuation line in a multiline statement.
--
http://mail.python.org/mailman/listinfo/python-list