1 |
Switch to the new helper for running unittest-style tests. Add a new |
2 |
dependency on dev-python/unittest-or-fail. Besides making the test |
3 |
phase fail on missing tests, it also means that IUSE=test is now added |
4 |
cnsistently with nose and pytest variants. |
5 |
|
6 |
Signed-off-by: Michał Górny <mgorny@g.o> |
7 |
--- |
8 |
eclass/distutils-r1.eclass | 3 ++- |
9 |
1 file changed, 2 insertions(+), 1 deletion(-) |
10 |
|
11 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
12 |
index 655a33e0d208..b8b77103c0cb 100644 |
13 |
--- a/eclass/distutils-r1.eclass |
14 |
+++ b/eclass/distutils-r1.eclass |
15 |
@@ -426,6 +426,7 @@ distutils_enable_tests() { |
16 |
setup.py) |
17 |
;; |
18 |
unittest) |
19 |
+ test_pkg="dev-python/unittest-or-fail" |
20 |
;; |
21 |
*) |
22 |
die "${FUNCNAME}: unsupported argument: ${1}" |
23 |
@@ -830,7 +831,7 @@ distutils-r1_python_test() { |
24 |
nonfatal esetup.py test --verbose |
25 |
;; |
26 |
unittest) |
27 |
- "${EPYTHON}" -m unittest discover -v |
28 |
+ eunittest |
29 |
;; |
30 |
*) |
31 |
die "Mis-synced test runner between ${FUNCNAME} and distutils_enable_testing" |
32 |
-- |
33 |
2.30.2 |