2008/6/17 Anne Archibald <[EMAIL PROTECTED]>: > 2008/6/17 Alan McIntyre <[EMAIL PROTECTED]>: > > On Tue, Jun 17, 2008 at 9:26 AM, David Huard <[EMAIL PROTECTED]> > wrote: > >> I noticed that NumpyTest and NumpyTestCase disappeared, and now I am > >> wondering whether these classes part of the public interface or were > they > >> reserved for internal usage ? > >> > >> In the former, it might be well to deprecate them before removing them. > > > > ParametricTestCase is gone too. There was at least one person using > > it that said he didn't mind porting to the nose equivalent, but I > > expect that's an indication there's more people out there using them. > > If there's a consensus that they need to go back in and get marked as > > deprecated, I'll put them back. > > Uh, I assumed NumpyTestCase was public and used it. I'm presumably not > alone, so perhaps a deprecation warning would be good. What > backward-compatible class should I use? unittest.TestCase? >
Yes. You'll also have to replace the NumpyTest().run() by something else. Either the new nose method or the old fashioned if __name__ == '__main__': unittest.main() Also, note that unittest.TestCase is more restrictive than NumpyTestCase regarding the method names that are considered tests. While NumpyTestCase accepted method names starting with check_, TestCase won't recognize those as tests. David > Thanks, > Anne > _______________________________________________ > Numpy-discussion mailing list > Numpy-discussion@scipy.org > http://projects.scipy.org/mailman/listinfo/numpy-discussion >
_______________________________________________ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion