Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-qt/
Date: Sun, 20 Feb 2022 16:33:10
Message-Id: 1645374781.4784217153586cdfd84cf2dd5c1bfa02d625403f.mgorny@gentoo
1 commit: 4784217153586cdfd84cf2dd5c1bfa02d625403f
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 20 16:23:58 2022 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 20 16:33:01 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47842171
7
8 dev-python/pytest-qt: Disable plugin autoloading to fix tests
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 dev-python/pytest-qt/pytest-qt-4.0.2.ebuild | 4 ++++
13 1 file changed, 4 insertions(+)
14
15 diff --git a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
16 index c11cb485179f..42c994fad350 100644
17 --- a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
18 +++ b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
19 @@ -49,6 +49,10 @@ src_test() {
20 }
21
22 python_test() {
23 + # warnings from other plugins cause the test output matchers to fail
24 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
25 + local -x PYTEST_PLUGINS=pytestqt.plugin
26 +
27 distutils_install_for_testing
28 PYTEST_QT_API="pyqt5" epytest || die
29 if [[ "${EPYTHON}" == "python3.10" ]]; then