commit: 61a8fec347738d27d8daf70f10439b1f2754e2e8 Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> AuthorDate: Fri Oct 15 19:52:08 2021 +0000 Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> CommitDate: Fri Oct 15 19:53:44 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61a8fec3
dev-python/pytest-xdist: backport fix testing with xprocess backport fix by mgorny for testing when pytest-xprocess is installed. Closes: https://bugs.gentoo.org/813093 Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> dev-python/pytest-xdist/pytest-xdist-2.3.0.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-python/pytest-xdist/pytest-xdist-2.3.0.ebuild b/dev-python/pytest-xdist/pytest-xdist-2.3.0.ebuild index c151147a967..883e7c88dce 100644 --- a/dev-python/pytest-xdist/pytest-xdist-2.3.0.ebuild +++ b/dev-python/pytest-xdist/pytest-xdist-2.3.0.ebuild @@ -35,3 +35,13 @@ PATCHES=( ) distutils_enable_tests --install pytest + +python_test() { + # disable autoloading plugins in nested pytest calls + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # since we disabled autoloading, force loading necessary plugins + local -x PYTEST_PLUGINS=xdist.plugin,xdist.looponfail,pytest_forked + + distutils_install_for_testing + epytest +}
