From 54efb0cbca50b8b4e366e330e5d5828142d17040 Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Fri, 13 May 2022 09:49:46 -0400 Subject: [PATCH] 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 --- dev-python/boltons/boltons-21.0.0-r1.ebuild | 12 +++++++----- .../files/boltons-21.0.0-python3.11-tests.patch | 7 +++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 dev-python/boltons/files/boltons-21.0.0-python3.11-tests.patch diff --git a/dev-python/boltons/boltons-21.0.0-r1.ebuild b/dev-python/boltons/boltons-21.0.0-r1.ebuild index 34374fc8ae2a4..ab6de833327d5 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 0000000000000..a54b2a4d0cf15 --- /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__',