commit: 7b01344ad2dbd0cfc168114e052581dc7c9d5e7a
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 1 16:18:43 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Jun 1 16:19:49 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b01344a
dev-python/protobuf: Workaround py3.13 segv using pytest-forked
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
dev-python/protobuf/protobuf-6.31.1.ebuild | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/dev-python/protobuf/protobuf-6.31.1.ebuild
b/dev-python/protobuf/protobuf-6.31.1.ebuild
index b03f14ae5af9..d05299680aac 100644
--- a/dev-python/protobuf/protobuf-6.31.1.ebuild
+++ b/dev-python/protobuf/protobuf-6.31.1.ebuild
@@ -36,9 +36,11 @@ BDEPEND="
dev-libs/protobuf
dev-python/absl-py[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/pytest-forked[${PYTHON_USEDEP}]
)
"
+EPYTEST_XDIST=1
distutils_enable_tests pytest
src_unpack() {
@@ -71,10 +73,6 @@ python_test() {
google/protobuf/internal/json_format_test.py
)
;;
- python3.13)
- # TODO: segfaults on exit
- return
- ;;
esac
cp -r "${BUILD_DIR}"/{install,test} || die
@@ -141,5 +139,6 @@ python_test() {
done
local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1
- epytest
+ # pytest-forked prevents segfault on py3.13
+ epytest -p pytest_forked --forked
}