tc-testing: correction to docstring in get_unique_item
Subsystems (4)
PATCH 1/1 tc-testing: correction to docstring in get_unique_item
The docstring says the function returns a "set" but it returns a "list". These are both python data types, so we should refer to the right one that is being returned.
Signed-off-by Brenda J. Butler <[email protected]>
---
This patch was formerly sent as part of a 15-patch series. It is being split off as a stand-alone patch.
tools/testing/selftests/tc-testing/tdc_helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/tc-testing/tdc_helper.py +1 -1
@@ -15,7 +15,7 @@ def get_categorized_testlist(alltests, ucat): def get_unique_item(lst): - """ For a list, return a set of the unique items in the list. """ + """ For a list, return a list of the unique items in the list. """ return list(set(lst))
Signature · 1 line
2.15.0.rc0
Quoted 5 lines · Brenda J. Butler
The docstring says the function returns a "set" but it returns a "list". These are both python data types, so we should refer to the right one that is being returned.
Signed-off-by Brenda J. Butler <[email protected]>
Acked-by Lucas Bates <[email protected]>