On Wed, May 21, 2008 at 7:23 PM, Pierre GM <[EMAIL PROTECTED]> 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 warning.simplefilter(). http://docs.python.org/dev/library/warnings > 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(). -- Robert Kern "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 _______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion