dev-python/proton-vpn-network-manager: use PYTEST_IGNORE to ignore failing tests

See-also: a931487cf9
Signed-off-by: Mattéo Rossillol‑‑Laruelle <beatussum@protonmail.com>
This commit is contained in:
Mattéo Rossillol‑‑Laruelle
2025-06-15 12:03:06 +02:00
parent ab7a224c56
commit 672dc8f50f

View File

@@ -42,11 +42,12 @@ distutils_enable_tests pytest
src_prepare() { src_prepare() {
distutils-r1_src_prepare distutils-r1_src_prepare
sed -i "/--cov/d" setup.cfg || die sed -i "/--cov/d" setup.cfg || die
rm tests/unit/core/test_networkmanager.py || die
} }
python_test() { python_test() {
# VPN connection cannot be tested within sandbox
local EPYTEST_IGNORE=( tests/unit/core/test_networkmanager.py )
XDG_RUNTIME_DIR="${T}/python_test" epytest XDG_RUNTIME_DIR="${T}/python_test" epytest
} }