Problem with Unittest:

Francis Avila francisgavila at yahoo.com
Tue May 13 12:22:13 EDT 2003


"Karl Scalet" <news at yebu.de> wrote in message
news:b9r5f8$mjpfq$1 at ID-141451.news.dfncis.de...
[...]
> if I remember correctly, it's even to go one further:
>
>          self.assertRaises(ValueError, differ)
>
> as the second argument needs to be a callable, leaving
> the possibility to pass arguments like:
> self.assertRaises(ValueError, differ, arg1, arg2)
>
> Karl
>

Ah yes, this is correct. I was too focused on the ValueError problem....
--
Francis Avila





More information about the Python-list mailing list