mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-25 11:57:36 -08:00
distutils-r1.eclass: Use eunittest, add dep on unittest-or-fail
Switch to the new helper for running unittest-style tests. Add a new dependency on dev-python/unittest-or-fail. Besides making the test phase fail on missing tests, it also means that IUSE=test is now added cnsistently with nose and pytest variants. Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -426,6 +426,7 @@ distutils_enable_tests() {
|
||||
setup.py)
|
||||
;;
|
||||
unittest)
|
||||
test_pkg="dev-python/unittest-or-fail"
|
||||
;;
|
||||
*)
|
||||
die "${FUNCNAME}: unsupported argument: ${1}"
|
||||
@@ -830,7 +831,7 @@ distutils-r1_python_test() {
|
||||
nonfatal esetup.py test --verbose
|
||||
;;
|
||||
unittest)
|
||||
"${EPYTHON}" -m unittest discover -v
|
||||
eunittest
|
||||
;;
|
||||
*)
|
||||
die "Mis-synced test runner between ${FUNCNAME} and distutils_enable_testing"
|
||||
|
||||
Reference in New Issue
Block a user