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

Michael Hudson mwh at python.net
Fri Apr 8 10:20:42 MEST 2005


David Ripton <dripton at ripton.net> writes:

> setup_method is necessary because unittest has it.  The ability to
> translate existing unittest modules to py.test with no thinking required
> is key if you want unittest users to switch their existing projects,
> rather than waiting until their next project to switch.  (Ideally, there
> 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.

Cheers,
mwh

-- 
  I don't remember any dirty green trousers.
                                             -- Ian Jackson, ucam.chat


More information about the py-dev mailing list