mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-06 00:48:18 -07:00
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:
@@ -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}"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user