Merge pull request #6456 from blueyed/fix-doc-_splitnode

minor: fix doc/example for _pytest.nodes._splitnode
This commit is contained in:
Daniel Hahler 2020-01-14 15:22:01 +01:00 committed by GitHub
commit 910d5df6a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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