diff --git a/tests/misc/test_split.py b/tests/misc/test_split.py index 65fa218b1..8d06a9ff9 100644 --- a/tests/misc/test_split.py +++ b/tests/misc/test_split.py @@ -114,15 +114,14 @@ def _parse_split_test_data_str(): """ tuple_class = collections.namedtuple('TestCase', 'input, keep, no_keep') - result = [] for line in test_data_str.splitlines(): if not line: continue data = line.split('/') item = tuple_class(input=data[0], keep=data[1].split('|'), no_keep=data[2].split('|')) - result.append(item) - return result + yield item + yield tuple_class(input='', keep=[], no_keep=[]) class TestSplit: