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 463C3138331 for ; Sun, 4 Mar 2018 11:19:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8BAB4E091F; Sun, 4 Mar 2018 11:19:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 6AAD5E091F for ; Sun, 4 Mar 2018 11:19:43 +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 8D0BF335C60 for ; Sun, 4 Mar 2018 11:19:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A2E2239 for ; Sun, 4 Mar 2018 11:19:41 +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: <1520162369.1f83cc2bc2ef20a1df3012035b97630fa570c6d2.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/pathlib2/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/pathlib2/pathlib2-2.3.0.ebuild X-VCS-Directories: dev-python/pathlib2/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1f83cc2bc2ef20a1df3012035b97630fa570c6d2 X-VCS-Branch: master Date: Sun, 4 Mar 2018 11:19:41 +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-Archives-Salt: 08cc61a6-f0ad-4b91-9ed3-8f9ba489fd3f X-Archives-Hash: f2c1552b986d2bd6a68f6b4990dfac91 commit: 1f83cc2bc2ef20a1df3012035b97630fa570c6d2 Author: Michał Górny gentoo org> AuthorDate: Sun Mar 4 08:36:58 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Mar 4 11:19:29 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1f83cc2b dev-python/pathlib2: Fix tests not to use broken private API dev-python/pathlib2/pathlib2-2.3.0.ebuild | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dev-python/pathlib2/pathlib2-2.3.0.ebuild b/dev-python/pathlib2/pathlib2-2.3.0.ebuild index 7f4dcb53ace..1a09a8dd7c8 100644 --- a/dev-python/pathlib2/pathlib2-2.3.0.ebuild +++ b/dev-python/pathlib2/pathlib2-2.3.0.ebuild @@ -24,6 +24,14 @@ DEPEND="${RDEPEND} dev-python/setuptools[${PYTHON_USEDEP}] test? ( $(python_gen_cond_dep 'dev-python/mock[${PYTHON_USEDEP}]' -2) )" +python_prepare_all() { + # stop using private Python API + # https://github.com/mcmtroffaes/pathlib2/issues/39 + sed -i -e 's/support\.android_not_root/False/' test*.py || die + + distutils-r1_python_prepare_all +} + python_test() { "${EPYTHON}" test_pathlib2.py -v || die "${EPYTHON}" test_pathlib2_with_py2_unicode_literals.py -v || die