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>
This commit is contained in:
Ionen Wolkens
2022-05-13 10:50:28 -04:00
parent 852cbcf172
commit 54efb0cbca
2 changed files with 14 additions and 5 deletions
+7 -5
View File
@@ -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
)
@@ -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__',