dev-python/pytest-codeblock: add a missing || die

Fixes: 30fd1f48bc
Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander committed 2026-10-19 16:54:49 +02:00
1 parent 4dd02e8ee8
commit f3698c0bca
1 file changed
+2 -2
@@ -34,10 +34,10 @@ distutils_enable_tests pytest
src_prepare() {
# Tests call `pytest` as well, so let's avoid code coverage altogether
sed -e '/addopts/,/^]$/d' -i pyproject.toml
sed -e '/addopts/,/^]$/d' -i pyproject.toml || die
# Having this variable set breaks all Django related tests
sed -e "/DJANGO_SETTINGS_MODULE/d" -i pyproject.toml
sed -e "/DJANGO_SETTINGS_MODULE/d" -i pyproject.toml || die
distutils-r1_src_prepare
}