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 CBBCE138334 for ; Wed, 20 Jun 2018 21:46:46 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D1AFAE09C6; Wed, 20 Jun 2018 21:46:45 +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 87363E09C6 for ; Wed, 20 Jun 2018 21:46:45 +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 2B691335C99 for ; Wed, 20 Jun 2018 21:46:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E8E442E1 for ; Wed, 20 Jun 2018 21:46:41 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1529531195.7559106d73eb9f57fdee1e50bfca158be6eba6a5.floppym@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/vcrpy/, dev-python/vcrpy/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/vcrpy/files/vcrpy-skip-network-tests.patch dev-python/vcrpy/vcrpy-1.11.1.ebuild dev-python/vcrpy/vcrpy-1.12.0.ebuild X-VCS-Directories: dev-python/vcrpy/ dev-python/vcrpy/files/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 7559106d73eb9f57fdee1e50bfca158be6eba6a5 X-VCS-Branch: master Date: Wed, 20 Jun 2018 21:46: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: 7e3f04a2-2c4f-48c8-86f8-afdacece99ec X-Archives-Hash: 1ad8a659d1c01cc800d91116fa4a4508 commit: 7559106d73eb9f57fdee1e50bfca158be6eba6a5 Author: Mike Gilbert gentoo org> AuthorDate: Wed Jun 20 21:46:20 2018 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Wed Jun 20 21:46:35 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7559106d dev-python/vcrpy: skip test requiring network access Closes: https://bugs.gentoo.org/645514 Package-Manager: Portage-2.3.40_p15, Repoman-2.3.9_p247 .../vcrpy/files/vcrpy-skip-network-tests.patch | 21 +++++++++++++++++++++ dev-python/vcrpy/vcrpy-1.11.1.ebuild | 6 +++++- dev-python/vcrpy/vcrpy-1.12.0.ebuild | 4 ++++ 3 files changed, 30 insertions(+), 1 deletion(-) diff --git a/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch b/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch new file mode 100644 index 00000000000..a1f00aa7785 --- /dev/null +++ b/dev-python/vcrpy/files/vcrpy-skip-network-tests.patch @@ -0,0 +1,21 @@ +diff --git a/tests/unit/test_stubs.py b/tests/unit/test_stubs.py +index 7eb0684..a4bc7a1 100644 +--- a/tests/unit/test_stubs.py ++++ b/tests/unit/test_stubs.py +@@ -1,7 +1,7 @@ + from vcr.stubs import VCRHTTPSConnection + from vcr.compat import mock + from vcr.cassette import Cassette +- ++import pytest + + class TestVCRConnection(object): + +@@ -11,6 +11,7 @@ class TestVCRConnection(object): + assert vcr_connection.real_connection.ssl_version == 'example_ssl_version' + + @mock.patch('vcr.cassette.Cassette.can_play_response_for', return_value=False) ++ @pytest.mark.skip('requires network access') + def testing_connect(*args): + vcr_connection = VCRHTTPSConnection('www.google.com') + vcr_connection.cassette = Cassette('test', record_mode='all') diff --git a/dev-python/vcrpy/vcrpy-1.11.1.ebuild b/dev-python/vcrpy/vcrpy-1.11.1.ebuild index b50e9d02784..0bc4604553e 100644 --- a/dev-python/vcrpy/vcrpy-1.11.1.ebuild +++ b/dev-python/vcrpy/vcrpy-1.11.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2017 Gentoo Foundation +# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -36,6 +36,10 @@ DEPEND=" dev-python/pytest-httpbin[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}"/vcrpy-skip-network-tests.patch +) + python_test() { py.test -vv -x tests/unit || die } diff --git a/dev-python/vcrpy/vcrpy-1.12.0.ebuild b/dev-python/vcrpy/vcrpy-1.12.0.ebuild index adfcee1807d..2676c410973 100644 --- a/dev-python/vcrpy/vcrpy-1.12.0.ebuild +++ b/dev-python/vcrpy/vcrpy-1.12.0.ebuild @@ -36,6 +36,10 @@ DEPEND=" dev-python/pytest-httpbin[${PYTHON_USEDEP}] )" +PATCHES=( + "${FILESDIR}"/vcrpy-skip-network-tests.patch +) + python_test() { py.test -vv -x tests/unit || die }