Julian Scheid <[email protected]> added the comment:
Here's a better example that you can cut and paste.
import optparse
def foo():
"""
>>> foo() #doctest: +ELLIPSIS
Traceback (most recent call last):
. . .
...OptionError: option bar: foo
"""
raise optparse.OptionError('foo', 'bar')
if __name__ == "__main__":
import doctest
doctest.testmod()
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue7490>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com