Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pyftpdlib/
Date: Wed, 27 Jun 2018 21:44:45
Message-Id: 1530135851.c950569c7258c60c8ba69a86f423e596750ccf4a.sbraz@gentoo
1 commit: c950569c7258c60c8ba69a86f423e596750ccf4a
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 27 21:44:11 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 27 21:44:11 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c950569c
7
8 dev-python/pyftpdlib: skip failing tests for v1.5.4
9
10 Closes: https://bugs.gentoo.org/659108
11 Closes: https://bugs.gentoo.org/636410
12 Package-Manager: Portage-2.3.40, Repoman-2.3.9
13
14 dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild | 11 ++++++++++-
15 1 file changed, 10 insertions(+), 1 deletion(-)
16
17 diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
18 index 8086ddd2bcd..14ef11ae7fe 100644
19 --- a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
20 +++ b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild
21 @@ -31,6 +31,7 @@ DEPEND="
22 dev-python/psutil[${PYTHON_USEDEP}]
23 dev-python/pyopenssl[${PYTHON_USEDEP}]
24 dev-python/pysendfile[${PYTHON_USEDEP}]
25 + dev-python/pytest[${PYTHON_USEDEP}]
26 )
27 "
28
29 @@ -47,7 +48,15 @@ python_compile_all() {
30 }
31
32 python_test() {
33 - "${EPYTHON}" ${PN}/test/runner.py || die "Tests failed with ${EPYTHON}"
34 + # Skip tests which sometimes fail:
35 + # https://github.com/giampaolo/pyftpdlib/issues/470
36 + # https://github.com/giampaolo/pyftpdlib/issues/471
37 + py.test --ignore ${PN}/test/test_misc.py -k \
38 + "not (test_idle_data_timeout2 or test_on_incomplete_file_received)" \
39 + || die "Tests failed with ${EPYTHON}"
40 + # These tests fail when passing additional options to py.test
41 + # so we need to run them separately
42 + py.test ${PN}/test/test_misc.py || die "Tests failed with ${EPYTHON}"
43 }
44
45 python_install_all() {