python-virtualenv/remove-pip_cert-fixture.patch
DistroBaker eb71969262 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-virtualenv.git#acb80f1b48a4d8aba25fde2bb249db70a30afd69
2021-01-12 12:08:03 +00:00

39 lines
1.1 KiB
Diff

From bd1bf597199a209b70bddec3cdaa64a9e4902cfa Mon Sep 17 00:00:00 2001
From: Lumir Balhar <lbalhar@redhat.com>
Date: Tue, 12 Jan 2021 08:09:38 +0100
Subject: [PATCH] Remove pip_cert fixture
---
tests/conftest.py | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/tests/conftest.py b/tests/conftest.py
index 4b91773..7b9628c 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -148,21 +148,6 @@ def ignore_global_config(tmp_path_factory):
yield
-@pytest.fixture(autouse=True, scope="session")
-def pip_cert(tmp_path_factory):
- # workaround for https://github.com/pypa/pip/issues/8984 - if the certificate is explicitly set no error can happen
- key = ensure_str("PIP_CERT")
- if key in os.environ:
- return
- cert = tmp_path_factory.mktemp("folder") / "cert"
- import pkgutil
-
- cert_data = pkgutil.get_data("pip._vendor.certifi", "cacert.pem")
- cert.write_bytes(cert_data)
- with change_os_environ(key, str(cert)):
- yield
-
-
@pytest.fixture(autouse=True)
def check_os_environ_stable():
old = os.environ.copy()
--
2.29.2