diff options
Diffstat (limited to 'dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild')
-rw-r--r-- | dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild index e6f9bec31410..14ef11ae7fec 100644 --- a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild +++ b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild @@ -23,6 +23,7 @@ DEPEND=" dev-python/setuptools[${PYTHON_USEDEP}] doc? ( dev-python/sphinx[${PYTHON_USEDEP}] + dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] ) test? ( ${RDEPEND} @@ -30,6 +31,7 @@ DEPEND=" dev-python/psutil[${PYTHON_USEDEP}] dev-python/pyopenssl[${PYTHON_USEDEP}] dev-python/pysendfile[${PYTHON_USEDEP}] + dev-python/pytest[${PYTHON_USEDEP}] ) " @@ -46,7 +48,15 @@ python_compile_all() { } python_test() { - "${EPYTHON}" ${PN}/test/runner.py || die "Tests failed with ${EPYTHON}" + # Skip tests which sometimes fail: + # https://github.com/giampaolo/pyftpdlib/issues/470 + # https://github.com/giampaolo/pyftpdlib/issues/471 + py.test --ignore ${PN}/test/test_misc.py -k \ + "not (test_idle_data_timeout2 or test_on_incomplete_file_received)" \ + || die "Tests failed with ${EPYTHON}" + # These tests fail when passing additional options to py.test + # so we need to run them separately + py.test ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}" } python_install_all() { |