1 |
commit: 8a061142d89bfd3b848f86de1eba60f5f1357788 |
2 |
Author: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Oct 17 22:49:05 2018 +0000 |
4 |
Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Oct 17 22:51:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8a061142 |
7 |
|
8 |
dev-python/more-itertools: revert to the test method used by upstream |
9 |
|
10 |
Upstream does not run doctests so we can't expect these to pass. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/668668 |
13 |
Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org> |
14 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
15 |
|
16 |
dev-python/more-itertools/more-itertools-4.3.0.ebuild | 10 +++------- |
17 |
1 file changed, 3 insertions(+), 7 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/more-itertools/more-itertools-4.3.0.ebuild b/dev-python/more-itertools/more-itertools-4.3.0.ebuild |
20 |
index 4601046596e..0b78adf9d36 100644 |
21 |
--- a/dev-python/more-itertools/more-itertools-4.3.0.ebuild |
22 |
+++ b/dev-python/more-itertools/more-itertools-4.3.0.ebuild |
23 |
@@ -23,10 +23,8 @@ DEPEND=" |
24 |
dev-python/sphinx[${PYTHON_USEDEP}] |
25 |
dev-python/sphinx_rtd_theme[${PYTHON_USEDEP}] |
26 |
) |
27 |
- test? ( |
28 |
- ${RDEPEND} |
29 |
- dev-python/pytest[${PYTHON_USEDEP}] |
30 |
- )" |
31 |
+ test? ( ${RDEPEND} ) |
32 |
+" |
33 |
|
34 |
python_compile_all() { |
35 |
if use doc; then |
36 |
@@ -36,7 +34,5 @@ python_compile_all() { |
37 |
} |
38 |
|
39 |
python_test() { |
40 |
- # Avoid ImportMismatchError, see https://bugs.gentoo.org/661412 |
41 |
- pytest -vv --doctest-modules "${BUILD_DIR}"/lib/more_itertools \ |
42 |
- || die "tests fail with ${EPYTHON}" |
43 |
+ "${EPYTHON}" -m unittest discover -v || die "tests fail with ${EPYTHON}" |
44 |
} |