From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1298506-garchives=archives.gentoo.org@lists.gentoo.org>
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 C3A4C13933E
	for <garchives@archives.gentoo.org>; Fri,  2 Jul 2021 18:59:22 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AC8AEE08F6;
	Fri,  2 Jul 2021 18:59:21 +0000 (UTC)
Received: from smtp.gentoo.org (mail.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 90BC8E08F6
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Jul 2021 18:59: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 946B133BEF5
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Jul 2021 18:59:20 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 322DA7B3
	for <gentoo-commits@lists.gentoo.org>; Fri,  2 Jul 2021 18:59:19 +0000 (UTC)
From: "Michał Górny" <mgorny@gentoo.org>
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" <mgorny@gentoo.org>
Message-ID: <1625252355.b963c0cfcf8f766c81c8fbde53048e1e2aa6da3c.mgorny@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/vcrpy/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-python/vcrpy/vcrpy-4.1.1.ebuild
X-VCS-Directories: dev-python/vcrpy/
X-VCS-Committer: mgorny
X-VCS-Committer-Name: Michał Górny
X-VCS-Revision: b963c0cfcf8f766c81c8fbde53048e1e2aa6da3c
X-VCS-Branch: master
Date: Fri,  2 Jul 2021 18:59:19 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 3e51f4f3-d287-4282-b754-7f412b422c91
X-Archives-Hash: 8628718652cd7022c6abb1f0881e4695

commit:     b963c0cfcf8f766c81c8fbde53048e1e2aa6da3c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  2 17:55:34 2021 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jul  2 18:59:15 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b963c0cf

dev-python/vcrpy: Port to py3.10

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/vcrpy/vcrpy-4.1.1.ebuild | 35 +++++++++++++++++++----------------
 1 file changed, 19 insertions(+), 16 deletions(-)

diff --git a/dev-python/vcrpy/vcrpy-4.1.1.ebuild b/dev-python/vcrpy/vcrpy-4.1.1.ebuild
index d110bfca31a..e54023e451a 100644
--- a/dev-python/vcrpy/vcrpy-4.1.1.ebuild
+++ b/dev-python/vcrpy/vcrpy-4.1.1.ebuild
@@ -3,8 +3,7 @@
 
 EAPI=7
 
-PYTHON_COMPAT=( python3_{7..9} )
-
+PYTHON_COMPAT=( python3_{8..10} )
 inherit distutils-r1
 
 DESCRIPTION="Automatically mock your HTTP interactions to simplify and speed up testing"
@@ -32,20 +31,24 @@ BDEPEND="
 
 distutils_enable_tests pytest
 
-src_prepare() {
-	# tests requiring Internet
-	rm tests/integration/test_aiohttp.py || die
-	rm tests/integration/test_boto.py || die
-	sed -e 's:test_flickr_should_respond_with_200:_&:' \
-		-e 's:test_amazon_doctype:_&:' \
-		-i tests/integration/test_wild.py || die
-	sed -e 's:testing_connect:_&:' \
-		-i tests/unit/test_stubs.py || die
-
-	distutils-r1_src_prepare
-}
-
 python_test() {
+	local deselect=(
+		# these tests require Internet
+		tests/integration/test_aiohttp.py
+		tests/integration/test_boto.py
+		tests/integration/test_httpx.py
+		tests/integration/test_wild.py::test_flickr_should_respond_with_200
+		tests/integration/test_wild.py::test_amazon_doctype
+		tests/unit/test_stubs.py::TestVCRConnection::testing_connect
+
+		# probably unhappy about ssl module being more strict now
+		'tests/integration/test_httplib2.py::test_effective_url[https]'
+		'tests/integration/test_requests.py::test_effective_url[https]'
+		'tests/integration/test_requests.py::test_redirects[https]'
+		'tests/integration/test_urllib2.py::test_effective_url[https]'
+		'tests/integration/test_urllib3.py::test_redirects[https]'
+	)
+
 	local -x REQUESTS_CA_BUNDLE=$("${EPYTHON}" -m pytest_httpbin.certs)
-	pytest -vv || die "Tests fail with ${EPYTHON}"
+	epytest ${deselect[@]/#/--deselect }
 }