From 63ef57873ad432bbe0ea13fd28a3388c23df418e Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Thu, 15 Jun 2017 10:46:55 +0200 Subject: [PATCH] TT#17600 pytest: import fixtures as plugins instead of importing them Quoting from https://twitter.com/hackebrot/status/873083574676733953: | pytest looks up fixtures based on the import path etc.. Importing | then creates an internal copy, which messes with the cache etc. Change-Id: I3ee6f5ab859218ce0cfe8681505b670952e47df6 --- t/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/conftest.py b/t/conftest.py index a82c1b58..e48a8916 100644 --- a/t/conftest.py +++ b/t/conftest.py @@ -1,2 +1,2 @@ import pytest -from fixtures import * +pytest_plugins = ['fixtures.commandline', 'fixtures.fs', 'fixtures.gitrepo', 'fixtures.programs']