summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2022-04-21 10:41:06 +0200
committerMichał Górny <mgorny@gentoo.org>2022-04-21 17:19:40 +0200
commit5ebae81ccb112276cf260007c99f18069063c0be (patch)
tree340776514aa2a7a901c1d201f1716406a5a43cac /eclass
parentpython-utils-r1.eclass: pypy3 is now Python 3.9 (diff)
downloadgentoo-5ebae81ccb112276cf260007c99f18069063c0be.tar.gz
gentoo-5ebae81ccb112276cf260007c99f18069063c0be.tar.bz2
gentoo-5ebae81ccb112276cf260007c99f18069063c0be.zip
eclass/tests/python-utils-r1.sh: Add tests for stdlib ver matching
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'eclass')
-rwxr-xr-xeclass/tests/python-utils-r1.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/eclass/tests/python-utils-r1.sh b/eclass/tests/python-utils-r1.sh
index ef7687b8a9cf..9c41798c4727 100755
--- a/eclass/tests/python-utils-r1.sh
+++ b/eclass/tests/python-utils-r1.sh
@@ -223,6 +223,15 @@ test_is "_python_impl_matches python3_6 python*" 0
test_is "_python_impl_matches python3_7 python*" 0
test_is "_python_impl_matches pypy3 python*" 1
set +f
+test_is "_python_impl_matches python3_8 3.8" 0
+test_is "_python_impl_matches python3_8 3.9" 1
+test_is "_python_impl_matches python3_8 3.10" 1
+test_is "_python_impl_matches python3_9 3.8" 1
+test_is "_python_impl_matches python3_9 3.9" 0
+test_is "_python_impl_matches python3_9 3.10" 1
+test_is "_python_impl_matches pypy3 3.8" 1
+test_is "_python_impl_matches pypy3 3.9" 0
+test_is "_python_impl_matches pypy3 3.10" 1
rm "${tmpfile}"