Skip to content

Commit

Permalink
Merge pull request #11656 from uranusjr/skip-ssl-errors-on-3.7
Browse files Browse the repository at this point in the history
Close #11643
  • Loading branch information
uranusjr authored Dec 14, 2022
2 parents 5f3f592 + 6d1f25b commit 26d914f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
Empty file.
4 changes: 4 additions & 0 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
[
Expand Down
13 changes: 13 additions & 0 deletions tests/functional/test_install_config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import ssl
import sys
import tempfile
import textwrap

Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 26d914f

Please sign in to comment.