commit: 315eab0f86abf1e7e7f492ce9a73fb6143bf9a50 Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Tue Feb 20 12:19:01 2024 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Tue Feb 20 12:23:19 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=315eab0f
dev-db/pgcli: Deselect hanging tests Bug: https://bugs.gentoo.org/925085 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> .../{pgcli-4.0.1.ebuild => pgcli-4.0.1-r1.ebuild} | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/dev-db/pgcli/pgcli-4.0.1.ebuild b/dev-db/pgcli/pgcli-4.0.1-r1.ebuild similarity index 76% rename from dev-db/pgcli/pgcli-4.0.1.ebuild rename to dev-db/pgcli/pgcli-4.0.1-r1.ebuild index 111362fa7895..510cad08ad1e 100644 --- a/dev-db/pgcli/pgcli-4.0.1.ebuild +++ b/dev-db/pgcli/pgcli-4.0.1-r1.ebuild @@ -26,11 +26,25 @@ RDEPEND=" dev-python/pygments[${PYTHON_USEDEP}] dev-python/setproctitle[${PYTHON_USEDEP}] dev-python/sqlparse[${PYTHON_USEDEP}] - dev-python/sshtunnel[${PYTHON_USEDEP}]" + dev-python/sshtunnel[${PYTHON_USEDEP}] +" BDEPEND=" test? ( dev-db/postgresql dev-python/mock[${PYTHON_USEDEP}] - )" + ) +" distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # hang while trying to create a keyring + # https://bugs.gentoo.org/925085 + tests/test_main.py::test_pg_service_file + tests/test_ssh_tunnel.py::test_ssh_tunnel + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +}