mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-python/protobuf: Workaround py3.13 segv using pytest-forked
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user