From 9438abdf0cdcb9cb0c8aae2b6251b4a1e4eafcb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 21 Nov 2019 18:12:22 +0100 Subject: [PATCH] dev-python/elementpath: Enable tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- .../elementpath/elementpath-1.3.1.ebuild | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/dev-python/elementpath/elementpath-1.3.1.ebuild b/dev-python/elementpath/elementpath-1.3.1.ebuild index 09b5ee6f3ace..4884138e8842 100644 --- a/dev-python/elementpath/elementpath-1.3.1.ebuild +++ b/dev-python/elementpath/elementpath-1.3.1.ebuild @@ -14,7 +14,23 @@ SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -IUSE="" +IUSE="test" +RESTRICT="!test? ( test )" BDEPEND=" - dev-python/setuptools[${PYTHON_USEDEP}]" + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + )" + +distutils_enable_tests unittest + +src_prepare() { + distutils-r1_src_prepare + + # this test fails depending on system locale + requires some random + # locales being installed + sed -e 's:test_compare_strings_function:_&:' \ + -i tests/test_xpath2_parser.py || die +} -- 2.26.2