|
1 | 1 | import os
|
2 | 2 | import ssl
|
| 3 | +import sys |
3 | 4 | import tempfile
|
4 | 5 | import textwrap
|
5 | 6 |
|
@@ -270,6 +271,10 @@ def test_install_no_binary_via_config_disables_cached_wheels(
|
270 | 271 | assert "Running setup.py install for upper" in str(res), str(res)
|
271 | 272 |
|
272 | 273 |
|
| 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 | +) |
273 | 278 | def test_prompt_for_authentication(
|
274 | 279 | script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
|
275 | 280 | ) -> None:
|
@@ -310,6 +315,10 @@ def test_prompt_for_authentication(
|
310 | 315 | assert f"User for {server.host}:{server.port}" in result.stdout, str(result)
|
311 | 316 |
|
312 | 317 |
|
| 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 | +) |
313 | 322 | def test_do_not_prompt_for_authentication(
|
314 | 323 | script: PipTestEnvironment, data: TestData, cert_factory: CertFactory
|
315 | 324 | ) -> None:
|
@@ -352,6 +361,10 @@ def test_do_not_prompt_for_authentication(
|
352 | 361 | assert "ERROR: HTTP error 401" in result.stderr
|
353 | 362 |
|
354 | 363 |
|
| 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 | +) |
355 | 368 | @pytest.mark.parametrize("auth_needed", (True, False))
|
356 | 369 | def test_prompt_for_keyring_if_needed(
|
357 | 370 | script: PipTestEnvironment,
|
|
0 commit comments