commit: 8c07649004ae8acdc4ab1ce59020f26c0eb6a4c4 Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Sun Aug 30 14:03:19 2020 +0000 Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> CommitDate: Sun Sep 13 18:22:00 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c076490
dev-python/pytest-qt: bug fix in testsuite, add py3.9 https://github.com/pytest-dev/pytest-qt/issues/314 https://github.com/pytest-dev/pytest-qt/pull/315 Closes: https://bugs.gentoo.org/738264 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> Closes: https://github.com/gentoo/gentoo/pull/17335 Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> .../files/pytest-qt-3.3.0-fix-file-match-test.patch | 13 +++++++++++++ dev-python/pytest-qt/pytest-qt-3.3.0.ebuild | 10 ++++++++-- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/dev-python/pytest-qt/files/pytest-qt-3.3.0-fix-file-match-test.patch b/dev-python/pytest-qt/files/pytest-qt-3.3.0-fix-file-match-test.patch new file mode 100644 index 00000000000..cbdeb80c1c5 --- /dev/null +++ b/dev-python/pytest-qt/files/pytest-qt-3.3.0-fix-file-match-test.patch @@ -0,0 +1,13 @@ +diff --git a/tests/test_modeltest.py b/tests/test_modeltest.py +index ef9371c..becd3ae 100644 +--- a/tests/test_modeltest.py ++++ b/tests/test_modeltest.py +@@ -350,7 +350,7 @@ def test_qt_tester_invalid(testdir): + "test_qt_tester_invalid.py:*: Qt modeltester errors", + "*-- Captured Qt messages --*", + "* QtWarningMsg: FAIL! model->columnCount(QModelIndex()) >= 0 () returned FALSE " +- "(qabstractitemmodeltester.cpp:*)", ++ "(*qabstractitemmodeltester.cpp:*)", + "*-- Captured stdout call --*", + "modeltest: Using Qt C++ tester", + "*== 1 failed in * ==*", diff --git a/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild b/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild index 1a43c9248d6..55715700f9e 100644 --- a/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild +++ b/dev-python/pytest-qt/pytest-qt-3.3.0.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{6,7,8} ) +PYTHON_COMPAT=( python3_{6,7,8,9} ) DISTUTILS_USE_SETUPTOOLS=rdepend @@ -19,7 +19,13 @@ KEYWORDS="~amd64 ~x86" DEPEND="dev-python/QtPy[gui,testlib,${PYTHON_USEDEP}]" -PATCHES=( "${FILESDIR}/${P}-skip-show-window-test.patch" ) +# Patch 1 skips a test that does not work inside the emerge environment: +# pytestqt.exceptions.TimeoutError: widget <PyQt5.QtWidgets.QWidget object at 0x7f57d8527af8> not activated in 1000 ms. +# Patch 2 fixes upstream bug 314 +PATCHES=( + "${FILESDIR}/${P}-skip-show-window-test.patch" + "${FILESDIR}/${P}-fix-file-match-test.patch" +) distutils_enable_tests pytest distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
