1 |
commit: 3a40916f4ea7a761e4d73f747b31ddbc7f35185d |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 17 22:11:21 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 17 22:13:15 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a40916f |
7 |
|
8 |
dev-python/more-itertools: fix tests by avoiding ImportMismatchError |
9 |
|
10 |
Closes: https://bugs.gentoo.org/661412 |
11 |
Package-Manager: Portage-2.3.43, Repoman-2.3.10 |
12 |
|
13 |
dev-python/more-itertools/more-itertools-4.2.0.ebuild | 3 ++- |
14 |
1 file changed, 2 insertions(+), 1 deletion(-) |
15 |
|
16 |
diff --git a/dev-python/more-itertools/more-itertools-4.2.0.ebuild b/dev-python/more-itertools/more-itertools-4.2.0.ebuild |
17 |
index 2d2e252336d..fe30c3ead7f 100644 |
18 |
--- a/dev-python/more-itertools/more-itertools-4.2.0.ebuild |
19 |
+++ b/dev-python/more-itertools/more-itertools-4.2.0.ebuild |
20 |
@@ -36,6 +36,7 @@ python_compile_all() { |
21 |
} |
22 |
|
23 |
python_test() { |
24 |
- py.test --doctest-modules more_itertools \ |
25 |
+ # Avoid ImportMismatchError, see https://bugs.gentoo.org/661412 |
26 |
+ PYTHONPATH=. py.test --doctest-modules more_itertools \ |
27 |
|| die "tests fail with ${EPYTHON}" |
28 |
} |