diff options
| author | Michał Górny <mgorny@gentoo.org> | 2025-06-21 08:24:29 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@gentoo.org> | 2025-06-21 08:25:07 +0200 |
| commit | 881627b9c68686464e9fa1318ee42eb209fc9b3b (patch) | |
| tree | e1c8b19f52cefd587a93571aa4e8d03906a4d868 /dev-python | |
| parent | 1e6ac98495e5684f9d55cd4b02b4b08006fdd18f (diff) | |
| download | gentoo-881627b9c68686464e9fa1318ee42eb209fc9b3b.tar.gz gentoo-881627b9c68686464e9fa1318ee42eb209fc9b3b.tar.bz2 gentoo-881627b9c68686464e9fa1318ee42eb209fc9b3b.zip | |
dev-python/betterproto: Use pytest-forked to workaround segfaults
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/betterproto/betterproto-2.0.0_beta6.ebuild | 5 | ||||
| -rw-r--r-- | dev-python/betterproto/betterproto-2.0.0_beta7.ebuild | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-python/betterproto/betterproto-2.0.0_beta6.ebuild b/dev-python/betterproto/betterproto-2.0.0_beta6.ebuild index 24decd1050fd..398f324a60aa 100644 --- a/dev-python/betterproto/betterproto-2.0.0_beta6.ebuild +++ b/dev-python/betterproto/betterproto-2.0.0_beta6.ebuild @@ -50,6 +50,7 @@ BDEPEND=" dev-python/pydantic[${PYTHON_USEDEP}] dev-python/tomlkit[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] ) " @@ -75,5 +76,7 @@ python_test() { ) local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p asyncio -p pytest_mock + # --forked to workaround protobuf segfaults + # https://github.com/protocolbuffers/protobuf/issues/22067 + epytest -p asyncio -p pytest_mock -p pytest_forked --forked } diff --git a/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild b/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild index 2864d6ec6364..a480a6fd334b 100644 --- a/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild +++ b/dev-python/betterproto/betterproto-2.0.0_beta7.ebuild @@ -50,6 +50,7 @@ BDEPEND=" dev-python/pydantic[${PYTHON_USEDEP}] dev-python/tomlkit[${PYTHON_USEDEP}] dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] dev-python/pytest-mock[${PYTHON_USEDEP}] ) " @@ -69,5 +70,7 @@ python_test() { ) local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - epytest -p asyncio -p pytest_mock + # --forked to workaround protobuf segfaults + # https://github.com/protocolbuffers/protobuf/issues/22067 + epytest -p asyncio -p pytest_mock -p pytest_forked --forked } |
