1 |
commit: 13440a2da516a0c9794bd0bb1e8a7968254dc9a9 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Feb 28 05:56:47 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Feb 28 05:56:47 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13440a2d |
7 |
|
8 |
dev-python/parso: Disable failing error tests |
9 |
|
10 |
Disable error tests that started failing with Python 3.8.2 as they |
11 |
depend on exact exception messages. |
12 |
|
13 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
14 |
|
15 |
dev-python/parso/parso-0.6.1.ebuild | 8 ++++++++ |
16 |
1 file changed, 8 insertions(+) |
17 |
|
18 |
diff --git a/dev-python/parso/parso-0.6.1.ebuild b/dev-python/parso/parso-0.6.1.ebuild |
19 |
index d33ced31acc..d9dff2d95d4 100644 |
20 |
--- a/dev-python/parso/parso-0.6.1.ebuild |
21 |
+++ b/dev-python/parso/parso-0.6.1.ebuild |
22 |
@@ -19,3 +19,11 @@ RESTRICT="!test? ( test )" |
23 |
|
24 |
distutils_enable_sphinx docs |
25 |
distutils_enable_tests pytest |
26 |
+ |
27 |
+src_prepare() { |
28 |
+ # tests rely on specific exception messages and fail occasionally |
29 |
+ # upstream suggested skipping them |
30 |
+ rm test/test_python_errors.py || die |
31 |
+ |
32 |
+ distutils-r1_src_prepare |
33 |
+} |