commit:     5bdfb214d5b0ceca6f0ed4aedf9f781b085751c9
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov  5 04:49:07 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov  5 04:49:07 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5bdfb214

dev-python/wrapt: Fix test failures on pypy3

Closes: https://bugs.gentoo.org/910536
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/wrapt/wrapt-1.15.0.ebuild | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/dev-python/wrapt/wrapt-1.15.0.ebuild 
b/dev-python/wrapt/wrapt-1.15.0.ebuild
index 9e33fe5a5171..bd4f60798893 100644
--- a/dev-python/wrapt/wrapt-1.15.0.ebuild
+++ b/dev-python/wrapt/wrapt-1.15.0.ebuild
@@ -26,6 +26,13 @@ KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k 
~mips ppc ppc64 ~riscv
 distutils_enable_tests pytest
 distutils_enable_sphinx docs dev-python/sphinx-rtd-theme
 
+src_prepare() {
+       # pypy3.9+ change, upstream commented this out
+       # in 59680c8bb998defa3be522fef6e49fd276bebe58
+       sed -i -e 's:if is_pypy:if False:' tests/test_object_proxy.py || die
+       distutils-r1_src_prepare
+}
+
 python_compile() {
        local -x WRAPT_INSTALL_EXTENSIONS=true
        distutils-r1_python_compile

Reply via email to