commit: 4784217153586cdfd84cf2dd5c1bfa02d625403f
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 20 16:23:58 2022 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Feb 20 16:33:01 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=47842171
dev-python/pytest-qt: Disable plugin autoloading to fix tests
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/pytest-qt/pytest-qt-4.0.2.ebuild | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
index c11cb485179f..42c994fad350 100644
--- a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
+++ b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild
@@ -49,6 +49,10 @@ src_test() {
}
python_test() {
+ # warnings from other plugins cause the test output matchers to fail
+ local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
+ local -x PYTEST_PLUGINS=pytestqt.plugin
+
distutils_install_for_testing
PYTEST_QT_API="pyqt5" epytest || die
if [[ "${EPYTHON}" == "python3.10" ]]; then