From 969648a39b7f35d36318fda911dccac646d7e59e Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 13 Sep 2025 23:08:20 +0200 Subject: [PATCH] dev-python/pylzma: fix tests --- dev-python/pylzma/pylzma-0.5.0.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dev-python/pylzma/pylzma-0.5.0.ebuild b/dev-python/pylzma/pylzma-0.5.0.ebuild index 5baf46a92..7f66f5074 100644 --- a/dev-python/pylzma/pylzma-0.5.0.ebuild +++ b/dev-python/pylzma/pylzma-0.5.0.ebuild @@ -17,10 +17,12 @@ LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~amd64" -#distutils_enable_tests unittest -#FIXME: run all tests -python_test() { - "${EPYTHON}" tests/test_pylzma.py || die "Tests fail with ${EPYTHON}" +distutils_enable_tests unittest + +src_prepare() { + sed -i -e 's/EnvironmentError, e/EnvironmentError as e/' tests/test_usage.py + eapply_user +} } python_install_all() {