[Numpy-discussion] 1.1.0rc1 RuntimeErrors
Wed May 21 19:34:28 CDT 2008
On Wed, May 21, 2008 at 7:23 PM, Pierre GM <firstname.lastname@example.org> wrote:
>> Should we disable the warning for the tests? It's a bit unnerving and
>> likely to generate mail calling attention to it.
> I don't have a problem with that. Is there some kind of trapping mechanism we
> can use ?
You can filter warnings using warning.filterwarnings() or
> A la "fail_unless_raise" ?
I'm not sure I see the connection. Do you need to test that the
warning is issued? If so, then make a filter with the action 'error'
and use self.assertRaises().
"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
-- Umberto Eco
More information about the Numpy-discussion