commit:     50edb13ea5920b231dc841b339a608b27c677d4b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Nov 25 16:13:31 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Nov 25 16:14:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=50edb13e

dev-python/pytest-xvfb: Fix tests with random plugins

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 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 88cb81666803..d81d8ba05ccd 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
 }

Reply via email to