[Oops, lost the list on this reply - sorry] On 18 September 2014 21:43, Floris Bruynooghe <[email protected]> wrote: > On 18 September 2014 19:51, Anatoly Bubenkov <[email protected]> wrote: >> hmm, but that grouping is not important for session scoped fixtures, right? >> i mean, what's the sense of tearing down the session-scoped fixture, even if >> most likely it will be not used by any test, earlier than the end of the >> session? > > I think you could subvert py.test's tear-fixtures-down-early by making > your session scoped fixture an autouse fixture, that way all tests > will need it to run and it won't be torn down early. However only > tests explicitly requesting the fixture will be bothered with it's > existence and value.
-- Debian GNU/Linux -- The Power of Freedom www.debian.org | www.gnu.org | www.kernel.org _______________________________________________ Pytest-dev mailing list [email protected] https://mail.python.org/mailman/listinfo/pytest-dev
