Skip to content

Commit 64ff484

Browse files
committed
Skip tests that fail on Python 2
1 parent 8a5656f commit 64ff484

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/functional/test_install.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1837,6 +1837,7 @@ def test_install_yanked_file_and_print_warning(script, data):
18371837
assert 'Successfully installed simple-3.0\n' in result.stdout, str(result)
18381838

18391839

1840+
@skip_if_python2
18401841
@pytest.mark.parametrize("install_args", [
18411842
(),
18421843
("--trusted-host", "localhost"),

tests/functional/test_install_config.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import pytest
77

8+
from tests.lib import skip_if_python2
89
from tests.lib.server import (
910
authorization_response,
1011
file_response,
@@ -129,6 +130,7 @@ def test_command_line_appends_correctly(script, data):
129130
), 'stdout: {}'.format(result.stdout)
130131

131132

133+
@skip_if_python2
132134
def test_config_file_override_stack(
133135
script, virtualenv, mock_server, shared_data
134136
):
@@ -247,6 +249,7 @@ def test_prompt_for_authentication(script, data, cert_factory):
247249
result.stdout, str(result)
248250

249251

252+
@skip_if_python2
250253
def test_do_not_prompt_for_authentication(script, data, cert_factory):
251254
"""Test behaviour if --no-input option is given while installing
252255
from a index url requiring authentication

tests/functional/test_install_reqs.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -582,8 +582,6 @@ def test_install_distribution_union_with_versions(
582582
expect_error=(resolver_variant == "2020-resolver"),
583583
)
584584
if resolver_variant == "2020-resolver":
585-
packages = ["localextras[bar] 0.0.1", "localextras[baz] 0.0.2"]
586-
587585
assert "Cannot install localextras[bar]" in result.stderr
588586
assert (
589587
"localextras[bar] 0.0.1 depends on localextras 0.0.1"

0 commit comments

Comments
 (0)