Merge pull request #6456 from blueyed/fix-doc-_splitnode
minor: fix doc/example for _pytest.nodes._splitnode
This commit is contained in:
commit
910d5df6a8
|
@ -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