Paul Rubin <http://[EMAIL PROTECTED]> writes:
> Giampaolo Rodolà <[EMAIL PROTECTED]> writes:
> > def test_answer():
> > assert 42 == 43
> >
> > What's the equivalent of unittest's "assertRaises"?
>
> def test_raises():
> try:
> thingy()
> assert 42 == 43
Clearer would be:
assert False
> except GoodException:
> pass
--
\ "Some people, when confronted with a problem, think 'I know, |
`\ I'll use regular expressions'. Now they have two problems." |
_o__) —Jamie Zawinski, in alt.religion.emacs |
Ben Finney
--
http://mail.python.org/mailman/listinfo/python-list