Skip to content

Commit 26d914f

Browse files
authored
Merge pull request #11656 from uranusjr/skip-ssl-errors-on-3.7
Close #11643
2 parents 5f3f592 + 6d1f25b commit 26d914f

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

news/704B9286-9572-4871-9B35-C6A8FA66AE75.trivial.rst

Whitespace-only changes.

tests/functional/test_install.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2204,6 +2204,10 @@ def test_error_all_yanked_files_and_no_pin(
22042204
), str(result)
22052205

22062206

2207+
@pytest.mark.skipif(
2208+
sys.platform == "linux" and sys.version_info < (3, 8),
2209+
reason="Custom SSL certification not running well in CI",
2210+
)
22072211
@pytest.mark.parametrize(
22082212
"install_args",
22092213
[

tests/functional/test_install_config.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import ssl
3+
import sys
34
import tempfile
45
import textwrap
56

@@ -270,6 +271,10 @@ def test_install_no_binary_via_config_disables_cached_wheels(
270271
assert "Running setup.py install for upper" in str(res), str(res)
271272

272273

274+
@pytest.mark.skipif(
275+
sys.platform == "linux" and sys.version_info < (3, 8),
276+
reason="Custom SSL certification not running well in CI",
277+
)
273278
def test_prompt_for_authentication(
274279
script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
275280
) -> None:
@@ -310,6 +315,10 @@ def test_prompt_for_authentication(
310315
assert f"User for {server.host}:{server.port}" in result.stdout, str(result)
311316

312317

318+
@pytest.mark.skipif(
319+
sys.platform == "linux" and sys.version_info < (3, 8),
320+
reason="Custom SSL certification not running well in CI",
321+
)
313322
def test_do_not_prompt_for_authentication(
314323
script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
315324
) -> None:
@@ -352,6 +361,10 @@ def test_do_not_prompt_for_authentication(
352361
assert "ERROR: HTTP error 401" in result.stderr
353362

354363

364+
@pytest.mark.skipif(
365+
sys.platform == "linux" and sys.version_info < (3, 8),
366+
reason="Custom SSL certification not running well in CI",
367+
)
355368
@pytest.mark.parametrize("auth_needed", (True, False))
356369
def test_prompt_for_keyring_if_needed(
357370
script: PipTestEnvironment,

0 commit comments

Comments
 (0)