Skip to content

Commit 28f29c9

Browse files
committed
Use query_string argument where needed
Signed-off-by: Philippe Ombredanne <[email protected]>
1 parent 265e7d3 commit 28f29c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/licensedcode/test_query.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ def test_Query_tokenize_from_string(self):
156156
Always'''
157157

158158
qry = Query(query_string=querys, idx=idx, _test_mode=True)
159-
qry.tokenize_and_build_runs(qry.tokens_by_line())
159+
tokens_by_line = list(qry.tokens_by_line(query_string=querys))
160+
qry.tokenize_and_build_runs(tokens_by_line)
160161
# convert tid to actual token strings
161162
tks_as_str = lambda tks: [None if tid is None else idx.tokens_by_tid[tid] for tid in tks]
162163

0 commit comments

Comments
 (0)