Skip to content

Commit f7a8a60

Browse files
authored
Merge pull request #10428 from jdufresne/typo-choise
Fix typo: choises → choices
2 parents 28e794e + 24d7408 commit f7a8a60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

news/cb1ed64e-fd5b-42e5-9285-c8d3e9758090.trivial.rst

Whitespace-only changes.

tests/unit/test_options.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ def test_env_override_default_append(self, values, monkeypatch):
7171
options, args = main(["fake"])
7272
assert options.find_links == values
7373

74-
@pytest.mark.parametrize("choises", (["w"], ["s", "w"]))
75-
def test_env_override_default_choice(self, choises, monkeypatch):
74+
@pytest.mark.parametrize("choices", (["w"], ["s", "w"]))
75+
def test_env_override_default_choice(self, choices, monkeypatch):
7676
"""
7777
Test that environment variable overrides a choice option default.
7878
"""
79-
monkeypatch.setenv("PIP_EXISTS_ACTION", " ".join(choises))
79+
monkeypatch.setenv("PIP_EXISTS_ACTION", " ".join(choices))
8080
options, args = main(["fake"])
81-
assert options.exists_action == choises
81+
assert options.exists_action == choices
8282

8383
@pytest.mark.parametrize("name", ("PIP_LOG_FILE", "PIP_LOCAL_LOG"))
8484
def test_env_alias_override_default(self, name, monkeypatch):

0 commit comments

Comments
 (0)