1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00

Skip tests using custom SSL on 3.7 + Linux

This combination does not work well on CI, and since 3.7 support is on
its last days anyway, let's just ignore those tests.
This commit is contained in:
Tzu-ping Chung 2022-12-13 14:32:03 +08:00
parent 5f3f592c45
commit 6d1f25b222
3 changed files with 17 additions and 0 deletions

View file

@ -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",
[

View file

@ -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,