Skip to content

Commit 5ff8bb4

Browse files
committed
Use a python range.
1 parent 2d7f30f commit 5ff8bb4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ def python_version(request):
1414

1515
@pytest.fixture
1616
def default_answers(python_version):
17-
return {"python_versions": [python_version]}
17+
highest_version_index = PYTHON_VERSIONS.index(python_version)
18+
return {"python_versions": PYTHON_VERSIONS[0 : (highest_version_index + 1)]}

0 commit comments

Comments
 (0)