Skip to content

Commit

Permalink
Skip tests that fail on Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pradyunsg committed Oct 30, 2020
1 parent 8a5656f commit 64ff484
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/functional/test_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1837,6 +1837,7 @@ def test_install_yanked_file_and_print_warning(script, data):
assert 'Successfully installed simple-3.0\n' in result.stdout, str(result)


@skip_if_python2
@pytest.mark.parametrize("install_args", [
(),
("--trusted-host", "localhost"),
Expand Down
3 changes: 3 additions & 0 deletions tests/functional/test_install_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import pytest

from tests.lib import skip_if_python2
from tests.lib.server import (
authorization_response,
file_response,
Expand Down Expand Up @@ -129,6 +130,7 @@ def test_command_line_appends_correctly(script, data):
), 'stdout: {}'.format(result.stdout)


@skip_if_python2
def test_config_file_override_stack(
script, virtualenv, mock_server, shared_data
):
Expand Down Expand Up @@ -247,6 +249,7 @@ def test_prompt_for_authentication(script, data, cert_factory):
result.stdout, str(result)


@skip_if_python2
def test_do_not_prompt_for_authentication(script, data, cert_factory):
"""Test behaviour if --no-input option is given while installing
from a index url requiring authentication
Expand Down
2 changes: 0 additions & 2 deletions tests/functional/test_install_reqs.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,8 +582,6 @@ def test_install_distribution_union_with_versions(
expect_error=(resolver_variant == "2020-resolver"),
)
if resolver_variant == "2020-resolver":
packages = ["localextras[bar] 0.0.1", "localextras[baz] 0.0.2"]

assert "Cannot install localextras[bar]" in result.stderr
assert (
"localextras[bar] 0.0.1 depends on localextras 0.0.1"
Expand Down

0 comments on commit 64ff484

Please sign in to comment.