[py-dev] Does each test method get called with a new instance?

Armin Rigo arigo at tunes.org
Fri Apr 8 10:48:29 MEST 2005


Hi,

On Fri, Apr 08, 2005 at 09:20:42AM +0100, Michael Hudson wrote:
> > shouldn't be any grunt work either -- a unittest_to_pytest script would
> > be nice to have, even if it wasn't 100% perfect.)
> 
> Err, we have one of these already, for PyPy.  I don't know if it's
> generally useful, though.

http://codespeak.net/svn/pypy/dist/pypy/tool/utestconvert.py

I think that apart from 5 lines for extra conversion cases specific to PyPy,
the tool is pretty much general and should be available somewhere with the py
lib.


Armin


More information about the py-dev mailing list