Author Julian.Scheid
Recipients Julian.Scheid, barry, georg.brandl, lregebro, ncoghlan, r.david.murray
Date 2010-04-15.11:00:56
SpamBayes Score 8.29774e-09
Marked as misclassified No
Message-id <1271329257.98.0.673753790935.issue7490@psf.upfronthosting.co.za>
In-reply-to
Content
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()
History
Date User Action Args
2010-04-15 11:00:58Julian.Scheidsetrecipients: + Julian.Scheid, barry, georg.brandl, ncoghlan, lregebro, r.david.murray
2010-04-15 11:00:57Julian.Scheidsetmessageid: <1271329257.98.0.673753790935.issue7490@psf.upfronthosting.co.za>
2010-04-15 11:00:56Julian.Scheidlinkissue7490 messages
2010-04-15 11:00:56Julian.Scheidcreate