diff --git a/_pytest/main.py b/_pytest/main.py index f3f3be2c1..8654d7af6 100644 --- a/_pytest/main.py +++ b/_pytest/main.py @@ -718,6 +718,7 @@ class Session(FSCollector): if rep.passed: has_matched = False for x in rep.result: + # TODO: remove parametrized workaround once collection structure contains parametrization if x.name == name or x.name.split("[")[0] == name: resultnodes.extend(self.matchnodes([x], nextnames)) has_matched = True