[Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
ben+python at benfinney.id.au
Thu Jul 17 02:43:30 CEST 2008
Andrew Bennetts <andrew-pythondev at puzzling.org> writes:
> This one is easily solved by making assertRaises return the
> exception it caught.
That breaks one simple feature of the unittest API: that all the test
methods will either raise a failure asertion, or return None.
\ “In case you haven't noticed, [the USA] are now almost as |
`\ feared and hated all over the world as the Nazis were.” —Kurt |
_o__) Vonnegut, 2004 |
More information about the Python-Dev