Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-14 Thread Jarrod Millman
Hey Alan, Please go ahead and commit your changes to use nose as our testing framework. We have all ready decided to go with nose. SciPy has all ready been converted. I don't think anyone raised any concerns that we should use another testing framework at this point. Once we switch over to usi

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-13 Thread Alan Jackson
On Fri, 13 Jun 2008 15:21:11 +0200 Gael Varoquaux <[EMAIL PROTECTED]> wrote: > On Thu, Jun 12, 2008 at 02:51:51AM +0200, Stéfan van der Walt wrote: > > > Build instructions don't really belong in docstrings. Put it in the > > > README.txt or DEV_README.txt. > > > No, but running the tests is some

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-13 Thread Gael Varoquaux
On Thu, Jun 12, 2008 at 02:51:51AM +0200, Stéfan van der Walt wrote: > > Build instructions don't really belong in docstrings. Put it in the > > README.txt or DEV_README.txt. > No, but running the tests is something every user should do before > using NumPy. Unless you object, I'll add that bit t

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-11 Thread Robert Kern
On Wed, Jun 11, 2008 at 19:51, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/6/12 Robert Kern <[EMAIL PROTECTED]>: >> On Tue, Jun 10, 2008 at 04:57, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: >>> 2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>: Is the stuff Robert pointed out on a wiki

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-11 Thread Stéfan van der Walt
2008/6/12 Robert Kern <[EMAIL PROTECTED]>: > On Tue, Jun 10, 2008 at 04:57, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: >> 2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>: >>> Is the stuff Robert pointed out on a wiki page somewhere? It would be >>> nice to have a "Welcome noob NumPy developer, here

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-11 Thread Alan McIntyre
On Wed, Jun 11, 2008 at 6:09 PM, Robert Kern <[EMAIL PROTECTED]> wrote: > On Tue, Jun 10, 2008 at 04:57, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: >> 2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>: >>> Is the stuff Robert pointed out on a wiki page somewhere? It would be >>> nice to have a "Welco

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-11 Thread Robert Kern
On Tue, Jun 10, 2008 at 04:57, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>: >> Is the stuff Robert pointed out on a wiki page somewhere? It would be >> nice to have a "Welcome noob NumPy developer, here's how to do >> NumPy-specific development thing

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-11 Thread Barry Wark
Could this also be added as a comment in the module docstring for test modules? It seems that anyone hacking on test code would be most likely to see it there...? Barry On Tue, Jun 10, 2008 at 2:57 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > 2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>:

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-10 Thread Stéfan van der Walt
2008/6/10 Alan McIntyre <[EMAIL PROTECTED]>: > Is the stuff Robert pointed out on a wiki page somewhere? It would be > nice to have a "Welcome noob NumPy developer, here's how to do > NumPy-specific development things," page. There may be such a page, > but I just haven't stumbled across it yet. W

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 7:07 PM, Anne Archibald <[EMAIL PROTECTED]> wrote: > 2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: >> You can run the test scripts from the source tree without installing >> them by using nosetests, like this: > > I am not enthusiastic about this change: it makes it harder for

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Robert Kern
On Mon, Jun 9, 2008 at 18:07, Anne Archibald <[EMAIL PROTECTED]> wrote: > Then again, it doesn't usually work for me to use the boilerplate to > run a single test without installing, since the non-installed test > doesn't necessarily find all the non-installed code, sometimes falling > back on the

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Anne Archibald
2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: > On Sun, Jun 8, 2008 at 6:49 PM, Nathan Bell <[EMAIL PROTECTED]> wrote: >> On Sun, Jun 8, 2008 at 6:15 AM, Alan McIntyre <[EMAIL PROTECTED]> wrote: >>> Right now there's "if __name__ == '__main__'" boilerplate at the end >>> of every test module; nose ca

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 10:47 AM, Matthew Brett <[EMAIL PROTECTED]> wrote: > I am sure you know this already, but you can just replace the tests > using ParametricTestCase with a nose test generator. Thanks for pointing that out; it's a rather cool feature. :) __

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 10:43 AM, Andrew Straw <[EMAIL PROTECTED]> wrote: > I'm using it in some of my code, but I'll happily switch to nose. It > will make my life easier, however, if I can see how you've converted it. > If you do this, can you indicate what svn revision made the switch? Certainly

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Matthew Brett
Hi, I am sure you know this already, but you can just replace the tests using ParametricTestCase with a nose test generator. See: http://www.scipy.org/scipy/scipy/wiki/TestingGuidelines under Parametric tests. Best, Matthew On Mon, Jun 9, 2008 at 3:37 PM, Alan McIntyre <[EMAIL PROTECTED]> wr

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Andrew Straw
Alan McIntyre wrote: > On Mon, Jun 9, 2008 at 3:41 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > >> I suggest we also remove ParametricTestCase now. >> > > I don't mind converting the existing uses (looks like it's only used 5 > times) to something else, it was causing trouble for me

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Alan McIntyre
On Mon, Jun 9, 2008 at 3:41 AM, Stéfan van der Walt <[EMAIL PROTECTED]> wrote: > I suggest we also remove ParametricTestCase now. I don't mind converting the existing uses (looks like it's only used 5 times) to something else, it was causing trouble for me with nose anyway--whenever the test modul

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-09 Thread Stéfan van der Walt
2008/6/8 Alan McIntyre <[EMAIL PROTECTED]>: > Right now there's "if __name__ == '__main__'" boilerplate at the end > of every test module; nose can find and run tests without that being > there. I wanted to get the list's take on removing that--it just > means that if you want to run the tests in

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-08 Thread Alan McIntyre
On Sun, Jun 8, 2008 at 6:49 PM, Nathan Bell <[EMAIL PROTECTED]> wrote: > On Sun, Jun 8, 2008 at 6:15 AM, Alan McIntyre <[EMAIL PROTECTED]> wrote: >> Right now there's "if __name__ == '__main__'" boilerplate at the end >> of every test module; nose can find and run tests without that being >> there.

Re: [Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-08 Thread Nathan Bell
On Sun, Jun 8, 2008 at 6:15 AM, Alan McIntyre <[EMAIL PROTECTED]> wrote: > Right now there's "if __name__ == '__main__'" boilerplate at the end > of every test module; nose can find and run tests without that being > there. I wanted to get the list's take on removing that--it just > means that if

[Numpy-discussion] Switching to nose test framework (was: NumpyTest problem)

2008-06-08 Thread Alan McIntyre
Hi all, Later this week (after finals are done ;) I'll be checking in some changes to switch NumPy tests over to nose, and I just wanted to give the list a heads up and see if there's any concerns, etc. On Mon, Jun 2, 2008 at 11:04 PM, Pierre GM <[EMAIL PROTECTED]> wrote: > * is there a way to se