dev-python/parso: Port 0.7.1-r1 to py3.10

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2021-07-01 08:52:20 +02:00
parent daf6441e22
commit 59fcb49855

View File

@@ -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 }
}