I\'d like to write a doctest like this:
\"\"\"
>>> print a.string()
foo : a
bar : b
date :
Ignoring the whole line is bit tricky though. Here:
"""
>>> do_your_thing() #doctest:+ELLIPSIS
...
"""
The triple dot will be interpreted as line continuation, and cause a syntax error.
If you want to ignore the whole line, you'll need something like:
"""
>>> sys.stdout.write('skip from here '); do_your_thing() #doctest:+ELLIPSIS
skip from here ...
"""