From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 29F36138335 for ; Thu, 21 Nov 2019 17:25:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 453B7E089A; Thu, 21 Nov 2019 17:25:55 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E621E089A for ; Thu, 21 Nov 2019 17:25:55 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2A80F34D1B4 for ; Thu, 21 Nov 2019 17:25:54 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB9FC8BA for ; Thu, 21 Nov 2019 17:25:52 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1574357149.9438abdf0cdcb9cb0c8aae2b6251b4a1e4eafcb4.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/elementpath/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/elementpath/elementpath-1.3.1.ebuild X-VCS-Directories: dev-python/elementpath/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 9438abdf0cdcb9cb0c8aae2b6251b4a1e4eafcb4 X-VCS-Branch: master Date: Thu, 21 Nov 2019 17:25:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5bf624b0-c1ec-424d-9495-c4aa969cb7ba X-Archives-Hash: 959a9a2b4eb44e443a76f13f13c10409 commit: 9438abdf0cdcb9cb0c8aae2b6251b4a1e4eafcb4 Author: Michał Górny gentoo org> AuthorDate: Thu Nov 21 17:12:22 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Nov 21 17:25:49 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9438abdf dev-python/elementpath: Enable tests Signed-off-by: Michał Górny gentoo.org> dev-python/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 09b5ee6f3ac..4884138e884 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 +}