[Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement) (original) (raw)
Ben Finney ben+python at benfinney.id.au
Thu Jul 17 02:43:30 CEST 2008
- Previous message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Next message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 | Ben Finney
- Previous message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Next message: [Python-Dev] Unittest PEP do's and don'ts (BDFL pronouncement)
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]