File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -1533,15 +1533,8 @@ def pytest_generate_tests(self, metafunc: "Metafunc") -> None:
1533
1533
"""Generate new tests based on parametrized fixtures used by the given metafunc"""
1534
1534
1535
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
1536
+ args , _ = ParameterSet ._parse_parametrize_args (* mark .args , ** mark .kwargs )
1537
+ return args
1545
1538
1546
1539
for argname in metafunc .fixturenames :
1547
1540
# Get the FixtureDefs for the argname.
You can’t perform that action at this time.
0 commit comments