From 244a0037d5bbdc3dafd6fe828d37bf4973bf54b0 Mon Sep 17 00:00:00 2001 From: "Ronny (tastytea) Gutbrod" Date: Sun, 30 Oct 2022 02:46:56 +0100 Subject: [PATCH] dev-python/i3ipc: fix some of the tests, disable tests Tests never worked, it seems. Most of the remaining errors are AttributeError: 'async_generator' object has no attribute 'foo' Bug: https://bugs.gentoo.org/800269 Signed-off-by: Ronny (tastytea) Gutbrod --- dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild b/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild index 584d9d7e3e..1a00b25ab6 100644 --- a/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild +++ b/dev-python/i3ipc/i3ipc-2.2.1-r1.ebuild @@ -6,7 +6,7 @@ EAPI=8 DISTUTILS_USE_PEP517="setuptools" PYTHON_COMPAT=( python3_{8..11} ) -inherit distutils-r1 +inherit distutils-r1 virtualx DESCRIPTION="An improved Python library to control i3wm and sway." HOMEPAGE="https://github.com/altdesktop/i3ipc-python" @@ -21,5 +21,19 @@ RDEPEND=" dev-python/python-xlib[${PYTHON_USEDEP}] " DEPEND="${RDEPEND}" +BDEPEND=" + ${BDEPEND} + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + x11-wm/i3 + ) +" + +RESTRICT="test" distutils_enable_tests pytest + +src_test() { + virtx distutils-r1_src_test +}