From 381d97d3fc0531c7293191aefd6aba52b3ee809d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Fri, 19 Jun 2020 11:35:15 +0200 Subject: distutils-r1.eclass: Set min nose/pytest versions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- eclass/distutils-r1.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'eclass/distutils-r1.eclass') diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index 8fa343ae75f7..d29abf71fe30 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -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}" } -- cgit v1.2.3-65-gdbad