[Numpy-discussion] nose changes checked in
Tue Jun 17 19:59:49 CDT 2008
2008/6/17 Anne Archibald <email@example.com>:
> 2008/6/17 Alan McIntyre <firstname.lastname@example.org>:
> > On Tue, Jun 17, 2008 at 9:26 AM, David Huard <email@example.com>
> >> I noticed that NumpyTest and NumpyTestCase disappeared, and now I am
> >> wondering whether these classes part of the public interface or were
> >> 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__':
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
> Numpy-discussion mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Numpy-discussion