Skip to content

Commit 5813770

Browse files
authored
fix windows selects incorrect spec (#1317)
1 parent ca49c94 commit 5813770

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/changelog/1317.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix Windows selects incorrect spec on first discovery - by :user:`gaborbernat`

src/tox/interpreters/windows/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ def locate_via_pep514(spec):
4444
if not _PY_AVAILABLE:
4545
from . import pep514
4646

47-
for spec in pep514.discover_pythons():
48-
_PY_AVAILABLE.append(spec)
47+
_PY_AVAILABLE.extend(pep514.discover_pythons())
4948
_PY_AVAILABLE.append(CURRENT)
5049
for cur_spec in _PY_AVAILABLE:
5150
if cur_spec.satisfies(spec):

0 commit comments

Comments
 (0)