From 50edb13ea5920b231dc841b339a608b27c677d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 25 Nov 2023 17:13:31 +0100 Subject: [PATCH] dev-python/pytest-xvfb: Fix tests with random plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild b/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild index 88cb816668039..d81d8ba05ccdf 100644 --- a/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild +++ b/dev-python/pytest-xvfb/pytest-xvfb-3.0.0.ebuild @@ -7,10 +7,14 @@ DISTUTILS_USE_PEP517=setuptools PYPI_NO_NORMALIZE=1 PYTHON_COMPAT=( python3_{10..12} ) PYTHON_REQ_USE="tk" + inherit distutils-r1 pypi DESCRIPTION="Pytest plugin to run Xvfb for tests" -HOMEPAGE="https://pypi.org/project/pytest-xvfb/" +HOMEPAGE=" + https://github.com/The-Compiler/pytest-xvfb/ + https://pypi.org/project/pytest-xvfb/ +" LICENSE="MIT" SLOT="0" @@ -19,10 +23,13 @@ KEYWORDS="amd64 ~arm ~arm64 ~riscv x86" RDEPEND=" dev-python/pytest[${PYTHON_USEDEP}] dev-python/pyvirtualdisplay[${PYTHON_USEDEP}] - x11-base/xorg-server[xvfb]" + x11-base/xorg-server[xvfb] +" distutils_enable_tests pytest python_test() { - epytest -p xvfb --runpytest=subprocess + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=pytest_xvfb + epytest --runpytest=subprocess }