summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLouis Sautier <sbraz@gentoo.org>2018-06-27 23:44:11 +0200
committerLouis Sautier <sbraz@gentoo.org>2018-06-27 23:44:11 +0200
commitc950569c7258c60c8ba69a86f423e596750ccf4a (patch)
tree53309bf70577869170e8ff6b84b1e1b7e21bd336 /dev-python
parent99fbdc7da46b36f81ffb59ef002136b3b6c4113b (diff)
downloadgentoo-c950569c7258c60c8ba69a86f423e596750ccf4a.tar.gz
gentoo-c950569c7258c60c8ba69a86f423e596750ccf4a.tar.bz2
gentoo-c950569c7258c60c8ba69a86f423e596750ccf4a.zip
dev-python/pyftpdlib: skip failing tests for v1.5.4
Closes: https://bugs.gentoo.org/659108 Closes: https://bugs.gentoo.org/636410 Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild11
1 files changed, 10 insertions, 1 deletions
diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
index 8086ddd2bcdd..14ef11ae7fec 100644
--- a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
+++ b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
@@ -31,6 +31,7 @@ DEPEND="
dev-python/psutil[${PYTHON_USEDEP}]
dev-python/pyopenssl[${PYTHON_USEDEP}]
dev-python/pysendfile[${PYTHON_USEDEP}]
+ dev-python/pytest[${PYTHON_USEDEP}]
)
"
@@ -47,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() {