1 |
commit: 54efb0cbca50b8b4e366e330e5d5828142d17040 |
2 |
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 13 13:49:46 2022 +0000 |
4 |
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 13 14:50:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54efb0cb |
7 |
|
8 |
dev-python/boltons: enable py3.11 |
9 |
|
10 |
Unconditionally disable test_exception_info, failing for the same |
11 |
reason it does when pytest-qt is loaded and has no consequence. |
12 |
|
13 |
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> |
14 |
|
15 |
dev-python/boltons/boltons-21.0.0-r1.ebuild | 12 +++++++----- |
16 |
.../boltons/files/boltons-21.0.0-python3.11-tests.patch | 7 +++++++ |
17 |
2 files changed, 14 insertions(+), 5 deletions(-) |
18 |
|
19 |
diff --git a/dev-python/boltons/boltons-21.0.0-r1.ebuild b/dev-python/boltons/boltons-21.0.0-r1.ebuild |
20 |
index 34374fc8ae2a..ab6de833327d 100644 |
21 |
--- a/dev-python/boltons/boltons-21.0.0-r1.ebuild |
22 |
+++ b/dev-python/boltons/boltons-21.0.0-r1.ebuild |
23 |
@@ -4,7 +4,7 @@ |
24 |
EAPI=8 |
25 |
|
26 |
DISTUTILS_USE_PEP517=setuptools |
27 |
-PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+PYTHON_COMPAT=( python3_{8..11} ) |
29 |
inherit distutils-r1 |
30 |
|
31 |
DESCRIPTION="Pure-python utilities in the same spirit as the standard library" |
32 |
@@ -23,9 +23,11 @@ DOCS=( CHANGELOG.md README.md TODO.rst ) |
33 |
|
34 |
PATCHES=( |
35 |
"${FILESDIR}"/${P}-python3.10.patch |
36 |
+ "${FILESDIR}"/${P}-python3.11-tests.patch |
37 |
) |
38 |
|
39 |
-python_test() { |
40 |
- # failure in test_exception_info with pytest-qt |
41 |
- epytest -p no:pytest-qt |
42 |
-} |
43 |
+EPYTEST_DESELECT=( |
44 |
+ # fails if there's any noise/differences in traceback text caused |
45 |
+ # by e.g. pytest-qt noise or python3.11 adding ^^^^^^ markers |
46 |
+ tests/test_tbutils.py::test_exception_info |
47 |
+) |
48 |
|
49 |
diff --git a/dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch b/dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch |
50 |
new file mode 100644 |
51 |
index 000000000000..a54b2a4d0cf1 |
52 |
--- /dev/null |
53 |
+++ b/dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch |
54 |
@@ -0,0 +1,7 @@ |
55 |
+object.__getstate__ was added in 3.11 (bpo-26579) and the test is unaware |
56 |
+--- a/tests/test_dictutils.py |
57 |
++++ b/tests/test_dictutils.py |
58 |
+@@ -476,2 +476,3 @@ |
59 |
+ '__getitem__', |
60 |
++ '__getstate__', |
61 |
+ '__gt__', |