Skip to content

Commit cf4b3e8

Browse files
committed
Expand values inside find_factors_group function
1 parent 5d73948 commit cf4b3e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/tox/config/loader/ini/factor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def expand_factors(value: str) -> Iterator[tuple[list[list[tuple[str, bool]]] |
6464

6565
def find_factor_groups(value: str) -> Iterator[list[tuple[str, bool]]]:
6666
"""Transform '{py,!pi}-{a,b},c' to [{'py', 'a'}, {'py', 'b'}, {'pi', 'a'}, {'pi', 'b'}, {'c'}]."""
67+
value = expand_ranges(value)
6768
for env in expand_env_with_negation(value):
6869
result = [name_with_negate(f) for f in env.split("-")]
6970
yield result

0 commit comments

Comments
 (0)