commit: 1b7418f5ab1d199b4c43a05cb943258cb068e058 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Thu Apr 2 22:48:10 2020 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Thu Apr 2 23:04:10 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1b7418f5
dev-python/manhole: disable failing tests Package-Manager: Portage-2.3.96, Repoman-2.3.22 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-python/manhole/manhole-1.6.0.ebuild | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild index 6a8e3a3..b60509b 100644 --- a/dev-python/manhole/manhole-1.6.0.ebuild +++ b/dev-python/manhole/manhole-1.6.0.ebuild @@ -4,7 +4,6 @@ EAPI=7 PYTHON_COMPAT=( python3_6 ) - DISTUTILS_USE_SETUPTOOLS=rdepend inherit distutils-r1 @@ -19,12 +18,10 @@ HOMEPAGE=" SRC_URI="https://github.com/ionelmc/${MYPN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="BSD-2" SLOT="0" - +IUSE="test" +RESTRICT="!test? ( test )" KEYWORDS="~amd64 ~x86" -#majority of test works but I can't exclude the failing one easily -RESTRICT="test" - RDEPEND="" DEPEND=" ${RDEPEND} @@ -40,13 +37,18 @@ DEPEND=" S="${WORKDIR}/${MYPN}-${PV}" -#src_prepare() { -# #wsgi test require network -# rm tests/wsgi.py || die -# default -#} +python_test() { + pytest -vv \ + --deselect tests/test_manhole.py::test_non_daemon_connection \ + --deselect tests/test_manhole.py::test_daemon_connection \ + --deselect tests/test_manhole.py::test_uwsgi \ + --deselect tests/test_manhole.py::test_fork_exec \ + --deselect tests/test_manhole.py::test_connection_handler_exec[str] \ + --deselect tests/test_manhole.py::test_connection_handler_exec[func] \ + --deselect tests/test_manhole_cli.py::test_help + +} -distutils_enable_tests pytest distutils_enable_sphinx docs \ dev-python/sphinx-py3doc-enhanced-theme \ dev-python/sphinxcontrib-napoleon
