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 A3548139345 for ; Sat, 17 Jul 2021 06:18:24 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 10793E09BC; Sat, 17 Jul 2021 06:18:22 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 C6064E09AE for ; Sat, 17 Jul 2021 06:18:21 +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 378B8342BDF for ; Sat, 17 Jul 2021 06:18:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A3A7E7D9 for ; Sat, 17 Jul 2021 06:18:18 +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: <1626502662.e811a6e0c9f2df4d375cc3651e07370a1179234f.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/requests-oauthlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild X-VCS-Directories: dev-python/requests-oauthlib/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: e811a6e0c9f2df4d375cc3651e07370a1179234f X-VCS-Branch: master Date: Sat, 17 Jul 2021 06:18:18 +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: f1af6db6-7dbc-4d5a-bac8-35be379b4877 X-Archives-Hash: 4137bc98ac44dbfdce5b90a7f721d42f commit: e811a6e0c9f2df4d375cc3651e07370a1179234f Author: Michał Górny gentoo org> AuthorDate: Sat Jul 17 06:12:54 2021 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Jul 17 06:17:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e811a6e0 dev-python/requests-oauthlib: Use pytest for nice deselect Signed-off-by: Michał Górny gentoo.org> .../requests-oauthlib/requests-oauthlib-1.3.0.ebuild | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild index cb2095e22a5..0dfb8b55327 100644 --- a/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild +++ b/dev-python/requests-oauthlib/requests-oauthlib-1.3.0.ebuild @@ -22,14 +22,15 @@ BDEPEND=" dev-python/requests-mock[${PYTHON_USEDEP}] )" -distutils_enable_tests unittest +distutils_enable_tests pytest -src_prepare() { - # require Internet access - sed -e 's:testCanPostBinaryData:_&:' \ - -e 's:test_content_type_override:_&:' \ - -e 's:test_url_is_native_str:_&:' \ - -i tests/test_core.py || die +python_test() { + local deselect=( + # Internet access + tests/test_core.py::OAuth1Test::testCanPostBinaryData + tests/test_core.py::OAuth1Test::test_content_type_override + tests/test_core.py::OAuth1Test::test_url_is_native_str + ) - distutils-r1_src_prepare + epytest ${deselect[@]/#/--deselect } }