distutils-r1.eclass: Set min nose/pytest versions

Require minimum nose/pytest versions in distutils_enable_tests.
This should save us some annoying bug reports from outdated systems.

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2020-06-19 11:35:15 +02:00
parent 1ce9390dbc
commit 381d97d3fc

View File

@@ -403,13 +403,13 @@ distutils_enable_tests() {
local test_pkg
case ${1} in
nose)
test_pkg="dev-python/nose"
test_pkg=">=dev-python/nose-1.3.7-r4"
python_test() {
nosetests -v || die "Tests fail with ${EPYTHON}"
}
;;
pytest)
test_pkg="dev-python/pytest"
test_pkg=">=dev-python/pytest-4.5.0"
python_test() {
pytest -vv || die "Tests fail with ${EPYTHON}"
}