Message103195
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() |
|
Date |
User |
Action |
Args |
2010-04-15 11:00:58 | Julian.Scheid | set | recipients:
+ Julian.Scheid, barry, georg.brandl, ncoghlan, lregebro, r.david.murray |
2010-04-15 11:00:57 | Julian.Scheid | set | messageid: <1271329257.98.0.673753790935.issue7490@psf.upfronthosting.co.za> |
2010-04-15 11:00:56 | Julian.Scheid | link | issue7490 messages |
2010-04-15 11:00:56 | Julian.Scheid | create | |
|