From 59fcb49855a4940931851df95c166e0250a20249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 1 Jul 2021 08:52:20 +0200 Subject: dev-python/parso: Port 0.7.1-r1 to py3.10 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- dev-python/parso/parso-0.7.1-r1.ebuild | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'dev-python') diff --git a/dev-python/parso/parso-0.7.1-r1.ebuild b/dev-python/parso/parso-0.7.1-r1.ebuild index d06ec052d5b5..7fe736de955c 100644 --- a/dev-python/parso/parso-0.7.1-r1.ebuild +++ b/dev-python/parso/parso-0.7.1-r1.ebuild @@ -3,7 +3,7 @@ EAPI=7 -PYTHON_COMPAT=( python3_{7..9} pypy3 ) +PYTHON_COMPAT=( python3_{8..10} pypy3 ) inherit distutils-r1 @@ -17,3 +17,13 @@ KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~sparc x86" distutils_enable_sphinx docs distutils_enable_tests pytest + +python_test() { + local deselect=() + [[ ${EPYTHON} == python3.10 ]] && deselect+=( + # py3.10 changed exception messages + test/test_python_errors.py::test_python_exception_matches + test/test_python_errors.py::test_default_except_error_postition + ) + epytest ${deselect[@]/#/--deselect } +} -- cgit v1.2.3