Julian Scheid <julian...@googlemail.com> 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 <rep...@bugs.python.org> <http://bugs.python.org/issue7490> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com