diff --git a/src/_pytest/nodes.py b/src/_pytest/nodes.py index 22c2ce337..c34dcce5c 100644 --- a/src/_pytest/nodes.py +++ b/src/_pytest/nodes.py @@ -49,7 +49,7 @@ def _splitnode(nodeid): [] ['testing', 'code'] ['testing', 'code', 'test_excinfo.py'] - ['testing', 'code', 'test_excinfo.py', 'TestFormattedExcinfo', '()'] + ['testing', 'code', 'test_excinfo.py', 'TestFormattedExcinfo'] """ if nodeid == "": # If there is no root node at all, return an empty list so the caller's logic can remain sane