1 |
commit: aec6872c7e5263c6f41c6334628125ab53be63a1 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 3 21:04:42 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 3 21:06:33 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aec6872c |
7 |
|
8 |
dev-python/pyftpdlib: fix tests with TZ=GMT |
9 |
|
10 |
Also: |
11 |
* pytest-relaxed is not loaded by default since commit |
12 |
ac9e67fa461c484fd751040bb6b58c258b6d601c. |
13 |
* make tests more verbose. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/666623 |
16 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
17 |
Package-Manager: Portage-2.3.49, Repoman-2.3.11 |
18 |
|
19 |
dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild | 9 +++++---- |
20 |
1 file changed, 5 insertions(+), 4 deletions(-) |
21 |
|
22 |
diff --git a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild |
23 |
index b34a8629054..1633ef26aff 100644 |
24 |
--- a/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild |
25 |
+++ b/dev-python/pyftpdlib/pyftpdlib-1.5.4.ebuild |
26 |
@@ -1,4 +1,4 @@ |
27 |
-# Copyright 1999-2018 Gentoo Foundation |
28 |
+# Copyright 1999-2018 Gentoo Authors |
29 |
# Distributed under the terms of the GNU General Public License v2 |
30 |
|
31 |
EAPI=6 |
32 |
@@ -64,9 +64,10 @@ python_test() { |
33 |
test_nlst |
34 |
) |
35 |
skipped_tests=${skipped_tests[@]/%/ or} |
36 |
- # Don't load the relaxed plugin, see https://bugs.gentoo.org/661082 |
37 |
- py.test --ignore ${PN}/test/test_misc.py -k "not (${skipped_tests% or})" \ |
38 |
- -p no:relaxed || die "Tests failed with ${EPYTHON}" |
39 |
+ # Tests fail with TZ=GMT, see https://bugs.gentoo.org/666623 |
40 |
+ TZ=UTC+1 pytest -vv \ |
41 |
+ --ignore ${PN}/test/test_misc.py -k "not (${skipped_tests% or})" \ |
42 |
+ || die "Tests failed with ${EPYTHON}" |
43 |
} |
44 |
|
45 |
python_install_all() { |