From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A65DE15808B for ; Sun, 20 Feb 2022 16:33:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9C6C7E082B; Sun, 20 Feb 2022 16:33:09 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 85E38E082B for ; Sun, 20 Feb 2022 16:33:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 5BB9B343655 for ; Sun, 20 Feb 2022 16:33:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BD2232E0 for ; Sun, 20 Feb 2022 16:33:06 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1645374782.002ae3be977b918b3684368766d655a8bc16927c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pytest-qt/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pytest-qt/pytest-qt-4.0.2.ebuild X-VCS-Directories: dev-python/pytest-qt/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 002ae3be977b918b3684368766d655a8bc16927c X-VCS-Branch: master Date: Sun, 20 Feb 2022 16:33:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4b4c5380-d392-43e6-8ee1-fabc122d5bc8 X-Archives-Hash: 87175fdf4b8bc296743c5892671cce1a commit: 002ae3be977b918b3684368766d655a8bc16927c Author: Michał Górny gentoo org> AuthorDate: Sun Feb 20 16:27:36 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 20 16:33:02 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002ae3be dev-python/pytest-qt: Switch to EPYTEST_DESELECT Signed-off-by: Michał Górny gentoo.org> dev-python/pytest-qt/pytest-qt-4.0.2.ebuild | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) 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 42c994fad350..c3f929813750 100644 --- a/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild +++ b/dev-python/pytest-qt/pytest-qt-4.0.2.ebuild @@ -30,20 +30,6 @@ BDEPEND=" distutils_enable_tests --install pytest distutils_enable_sphinx docs dev-python/sphinx_rtd_theme -python_prepare_all() { - # This show window test does not work inside the emerge env, as we cannot show windows. - # pytestqt.exceptions.TimeoutError: widget not activated in 1000 ms. - sed -i -e 's:test_wait_window:_&:' tests/test_basics.py || die - - # This is not going to work since we want to test both implementations - # and therefore pull in both and explicitly set PYTEST_QT_API - sed -i -e 's:test_qt_api_ini_config_with_envvar:_&:' \ - -e 's:test_qt_api_ini_config:_&:' \ - tests/test_basics.py || die - - distutils-r1_python_prepare_all -} - src_test() { virtx distutils-r1_src_test } @@ -53,6 +39,17 @@ python_test() { local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 local -x PYTEST_PLUGINS=pytestqt.plugin + local EPYTEST_DESELECT=( + # requires the window to be activated; that doesn't seem + # to be possible inside Xvfb + "tests/test_basics.py::test_wait_window[waitActive-True]" + + # we are forcing a specific module via envvar, effectively + # overriding the config + tests/test_basics.py::test_qt_api_ini_config + tests/test_basics.py::test_qt_api_ini_config_with_envvar + ) + distutils_install_for_testing PYTEST_QT_API="pyqt5" epytest || die if [[ "${EPYTHON}" == "python3.10" ]]; then