commit:     381d97d3fc0531c7293191aefd6aba52b3ee809d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jun 19 09:35:15 2020 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jun 19 10:10:47 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=381d97d3

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 <AT> gentoo.org>

 eclass/distutils-r1.eclass | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 8fa343ae75f..d29abf71fe3 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}"
                        }

Reply via email to