summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTzu-ping Chung <uranusjr@gmail.com>2022-12-14 10:10:15 +0800
committerGitHub <noreply@github.com>2022-12-14 10:10:15 +0800
commit26d914f12f121eaf92d8d79b607343c655b52c02 (patch)
treeb014de729fd6d689553f2af0c10b2c92b8317af2 /tests
parent5f3f592c4581a059ff9de0fb8052ef5c6ef25fd4 (diff)
parent6d1f25b222c3211f1b207b557d93cdb0044ecf43 (diff)
downloadpip-26d914f12f121eaf92d8d79b607343c655b52c02.tar.gz
Merge pull request #11656 from uranusjr/skip-ssl-errors-on-3.7
Close https://github.com/pypa/pip/pull/11643
Diffstat (limited to 'tests')
-rw-r--r--tests/functional/test_install.py4
-rw-r--r--tests/functional/test_install_config.py13
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/functional/test_install.py b/tests/functional/test_install.py
index 6131a4054..7b07226c9 100644
--- a/tests/functional/test_install.py
+++ b/tests/functional/test_install.py
@@ -2204,6 +2204,10 @@ def test_error_all_yanked_files_and_no_pin(
), str(result)
+@pytest.mark.skipif(
+ sys.platform == "linux" and sys.version_info < (3, 8),
+ reason="Custom SSL certification not running well in CI",
+)
@pytest.mark.parametrize(
"install_args",
[
diff --git a/tests/functional/test_install_config.py b/tests/functional/test_install_config.py
index 66043fa1f..99e59b97b 100644
--- a/tests/functional/test_install_config.py
+++ b/tests/functional/test_install_config.py
@@ -1,5 +1,6 @@
import os
import ssl
+import sys
import tempfile
import textwrap
@@ -270,6 +271,10 @@ def test_install_no_binary_via_config_disables_cached_wheels(
assert "Running setup.py install for upper" in str(res), str(res)
+@pytest.mark.skipif(
+ sys.platform == "linux" and sys.version_info < (3, 8),
+ reason="Custom SSL certification not running well in CI",
+)
def test_prompt_for_authentication(
script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
) -> None:
@@ -310,6 +315,10 @@ def test_prompt_for_authentication(
assert f"User for {server.host}:{server.port}" in result.stdout, str(result)
+@pytest.mark.skipif(
+ sys.platform == "linux" and sys.version_info < (3, 8),
+ reason="Custom SSL certification not running well in CI",
+)
def test_do_not_prompt_for_authentication(
script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
) -> None:
@@ -352,6 +361,10 @@ def test_do_not_prompt_for_authentication(
assert "ERROR: HTTP error 401" in result.stderr
+@pytest.mark.skipif(
+ sys.platform == "linux" and sys.version_info < (3, 8),
+ reason="Custom SSL certification not running well in CI",
+)
@pytest.mark.parametrize("auth_needed", (True, False))
def test_prompt_for_keyring_if_needed(
script: PipTestEnvironment,