[py-dev] reversing fixture/xunit setup call order?

Floris Bruynooghe flub at devork.be
Tue Dec 18 21:11:51 CET 2012


On 16 December 2012 12:23, holger krekel <holger at merlinux.eu> wrote:
> Currently, if you define e.g. an autouse fixture function it is going to
> be called _after_ the xUnit setup functions.  This is especially
> surprising when you do a session-scoped autouse fixture.  I am wondering
> if we could reverse the order, i.e. call fixture functions (including
> autouse-fixtures of course) ahead of xUnit setup methods.
>
> any thoughts?

Agreed, I think it would be a good idea to have at least autouse
fixtures before the xUnit setup.

Regards,
Floris


--
Debian GNU/Linux -- The Power of Freedom
www.debian.org | www.gnu.org | www.kernel.org



More information about the Pytest-dev mailing list