minor: fix doc/example for _pytest.nodes._splitnode

This commit is contained in:
Daniel Hahler 2020-01-14 12:40:06 +01:00
parent 8eec42f040
commit 189fe3ba1d
1 changed files with 1 additions and 1 deletions

View File

@ -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