commit: 54efb0cbca50b8b4e366e330e5d5828142d17040
Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Fri May 13 13:49:46 2022 +0000
Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Fri May 13 14:50:28 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54efb0cb
dev-python/boltons: enable py3.11
Unconditionally disable test_exception_info, failing for the same
reason it does when pytest-qt is loaded and has no consequence.
Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>
dev-python/boltons/boltons-21.0.0-r1.ebuild | 12 +++++++-----
.../boltons/files/boltons-21.0.0-python3.11-tests.patch | 7 +++++++
2 files changed, 14 insertions(+), 5 deletions(-)
diff --git a/dev-python/boltons/boltons-21.0.0-r1.ebuild
b/dev-python/boltons/boltons-21.0.0-r1.ebuild
index 34374fc8ae2a..ab6de833327d 100644
--- a/dev-python/boltons/boltons-21.0.0-r1.ebuild
+++ b/dev-python/boltons/boltons-21.0.0-r1.ebuild
@@ -4,7 +4,7 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
-PYTHON_COMPAT=( python3_{8..10} )
+PYTHON_COMPAT=( python3_{8..11} )
inherit distutils-r1
DESCRIPTION="Pure-python utilities in the same spirit as the standard library"
@@ -23,9 +23,11 @@ DOCS=( CHANGELOG.md README.md TODO.rst )
PATCHES=(
"${FILESDIR}"/${P}-python3.10.patch
+ "${FILESDIR}"/${P}-python3.11-tests.patch
)
-python_test() {
- # failure in test_exception_info with pytest-qt
- epytest -p no:pytest-qt
-}
+EPYTEST_DESELECT=(
+ # fails if there's any noise/differences in traceback text caused
+ # by e.g. pytest-qt noise or python3.11 adding ^^^^^^ markers
+ tests/test_tbutils.py::test_exception_info
+)
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
new file mode 100644
index 000000000000..a54b2a4d0cf1
--- /dev/null
+++ b/dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch
@@ -0,0 +1,7 @@
+object.__getstate__ was added in 3.11 (bpo-26579) and the test is unaware
+--- a/tests/test_dictutils.py
++++ b/tests/test_dictutils.py
+@@ -476,2 +476,3 @@
+ '__getitem__',
++ '__getstate__',
+ '__gt__',