summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIonen Wolkens <ionen@gentoo.org>2022-05-13 09:49:46 -0400
committerIonen Wolkens <ionen@gentoo.org>2022-05-13 10:50:28 -0400
commit54efb0cbca50b8b4e366e330e5d5828142d17040 (patch)
tree3b77abf1f40baa4c7c82e0344eedf2a8fa8cfb23 /dev-python/boltons
parentdev-python/boltons: use pep517 (diff)
downloadgentoo-54efb0cbca50b8b4e366e330e5d5828142d17040.tar.gz
gentoo-54efb0cbca50b8b4e366e330e5d5828142d17040.tar.bz2
gentoo-54efb0cbca50b8b4e366e330e5d5828142d17040.zip
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@gentoo.org>
Diffstat (limited to 'dev-python/boltons')
-rw-r--r--dev-python/boltons/boltons-21.0.0-r1.ebuild12
-rw-r--r--dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch7
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__',