dev-python/pycurl: Improve running tests
authorMichał Górny <mgorny@gentoo.org>
Mon, 16 Jul 2018 16:59:36 +0000 (18:59 +0200)
committerMichał Górny <mgorny@gentoo.org>
Mon, 16 Jul 2018 17:41:01 +0000 (19:41 +0200)
Run tests manually instead of via Makefile.  Remove unnecessary test
dep on broken dev-python/nose-showskipped plugin.

dev-python/pycurl/pycurl-7.43.0.2.ebuild

index 056fbcb20b27c94f37505808cfbcfffde7aa1c09..3b07c860bc35dd8a5bee73157518cbf0f7630bf5 100644 (file)
@@ -40,7 +40,6 @@ DEPEND="${RDEPEND}
                dev-python/bottle[${PYTHON_USEDEP}]
                dev-python/flaky[${PYTHON_USEDEP}]
                dev-python/nose[${PYTHON_USEDEP}]
-               dev-python/nose-show-skipped[${PYTHON_USEDEP}]
                net-misc/curl[curl_ssl_gnutls(-)=,curl_ssl_libressl(-)=,curl_ssl_nss(-)=,curl_ssl_openssl(-)=,-curl_ssl_axtls(-),-curl_ssl_cyassl(-),http2,kerberos]
                >=dev-python/bottle-0.12.7[${PYTHON_USEDEP}]
        )"
@@ -49,7 +48,6 @@ DISTUTILS_IN_SOURCE_BUILD=1
 
 python_prepare_all() {
        sed -e "/setup_args\['data_files'\] = /d" -i setup.py || die
-       sed -e '/pyflakes/d' -i Makefile || die
        distutils-r1_python_prepare_all
 }
 
@@ -64,7 +62,7 @@ python_compile() {
 }
 
 python_test() {
-       emake -j1 do-test
+       nosetests -a '!standalone' -v --with-flaky || die "Tests fail with ${EPYTHON}"
 }
 
 python_install_all() {