1 |
commit: 59fcb49855a4940931851df95c166e0250a20249 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 1 06:52:20 2021 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 1 08:43:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59fcb498 |
7 |
|
8 |
dev-python/parso: Port 0.7.1-r1 to py3.10 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
dev-python/parso/parso-0.7.1-r1.ebuild | 12 +++++++++++- |
13 |
1 file changed, 11 insertions(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/dev-python/parso/parso-0.7.1-r1.ebuild b/dev-python/parso/parso-0.7.1-r1.ebuild |
16 |
index d06ec052d5b..7fe736de955 100644 |
17 |
--- a/dev-python/parso/parso-0.7.1-r1.ebuild |
18 |
+++ b/dev-python/parso/parso-0.7.1-r1.ebuild |
19 |
@@ -3,7 +3,7 @@ |
20 |
|
21 |
EAPI=7 |
22 |
|
23 |
-PYTHON_COMPAT=( python3_{7..9} pypy3 ) |
24 |
+PYTHON_COMPAT=( python3_{8..10} pypy3 ) |
25 |
|
26 |
inherit distutils-r1 |
27 |
|
28 |
@@ -17,3 +17,13 @@ KEYWORDS="amd64 ~arm arm64 ~ppc ppc64 ~sparc x86" |
29 |
|
30 |
distutils_enable_sphinx docs |
31 |
distutils_enable_tests pytest |
32 |
+ |
33 |
+python_test() { |
34 |
+ local deselect=() |
35 |
+ [[ ${EPYTHON} == python3.10 ]] && deselect+=( |
36 |
+ # py3.10 changed exception messages |
37 |
+ test/test_python_errors.py::test_python_exception_matches |
38 |
+ test/test_python_errors.py::test_default_except_error_postition |
39 |
+ ) |
40 |
+ epytest ${deselect[@]/#/--deselect } |
41 |
+} |