minor: fix doc/example for _pytest.nodes._splitnode
This commit is contained in:
parent
8eec42f040
commit
189fe3ba1d
|
@ -49,7 +49,7 @@ def _splitnode(nodeid):
|
||||||
[]
|
[]
|
||||||
['testing', 'code']
|
['testing', 'code']
|
||||||
['testing', 'code', 'test_excinfo.py']
|
['testing', 'code', 'test_excinfo.py']
|
||||||
['testing', 'code', 'test_excinfo.py', 'TestFormattedExcinfo', '()']
|
['testing', 'code', 'test_excinfo.py', 'TestFormattedExcinfo']
|
||||||
"""
|
"""
|
||||||
if nodeid == "":
|
if nodeid == "":
|
||||||
# If there is no root node at all, return an empty list so the caller's logic can remain sane
|
# If there is no root node at all, return an empty list so the caller's logic can remain sane
|
||||||
|
|
Loading…
Reference in New Issue