We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c00fe96 commit e36adbaCopy full SHA for e36adba
src/_pytest/fixtures.py
@@ -1533,15 +1533,8 @@ def pytest_generate_tests(self, metafunc: "Metafunc") -> None:
1533
"""Generate new tests based on parametrized fixtures used by the given metafunc"""
1534
1535
def get_parametrize_mark_argnames(mark: Mark) -> Sequence[str]:
1536
- if "argnames" in mark.kwargs:
1537
- argnames = mark.kwargs[
1538
- "argnames"
1539
- ] # type: Union[str, Tuple[str, ...], List[str]]
1540
- else:
1541
- argnames = mark.args[0]
1542
- if not isinstance(argnames, (tuple, list)):
1543
- argnames = [x.strip() for x in argnames.split(",") if x.strip()]
1544
- return argnames
+ args, _ = ParameterSet._parse_parametrize_args(*mark.args, **mark.kwargs)
+ return args
1545
1546
for argname in metafunc.fixturenames:
1547
# Get the FixtureDefs for the argname.
0 commit comments