summaryrefslogtreecommitdiff
path: root/dev-python/parso
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/parso')
-rw-r--r--dev-python/parso/parso-0.8.7.ebuild19
1 files changed, 19 insertions, 0 deletions
diff --git a/dev-python/parso/parso-0.8.7.ebuild b/dev-python/parso/parso-0.8.7.ebuild
index bbb9021820bd..22d476196605 100644
--- a/dev-python/parso/parso-0.8.7.ebuild
+++ b/dev-python/parso/parso-0.8.7.ebuild
@@ -27,3 +27,22 @@ distutils_enable_sphinx docs
EPYTEST_PLUGINS=()
EPYTEST_XDIST=1
distutils_enable_tests pytest
+
+python_test() {
+ local EPYTEST_DESELECT=()
+
+ case ${EPYTHON} in
+ python3.15*)
+ EPYTEST_DESELECT+=(
+ # minor exception message mismatch
+ 'test/test_python_errors.py::test_python_exception_matches[def f(x, x): pass]'
+ 'test/test_python_errors.py::test_python_exception_matches[def x(*): pass]'
+ # now valid in py3.15
+ 'test/test_python_errors.py::test_python_exception_matches[[*[] for a in [1]]]'
+ 'test/test_python_errors.py::test_python_exception_matches[{**{} for a in [1]}]'
+ )
+ ;;
+ esac
+
+ epytest
+}