diff --git a/dev-python/manhole/manhole-1.6.0.ebuild b/dev-python/manhole/manhole-1.6.0.ebuild index 6a8e3a3e29..b60509bf50 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