Skip to content

Commit 9560c80

Browse files
Update python/ql/test/query-tests/Exceptions/generators/test.py
Co-Authored-By: Rasmus Wriedt Larsen <[email protected]>
1 parent ff6e0ce commit 9560c80

File tree

1 file changed

+3
-0
lines changed
  • python/ql/test/query-tests/Exceptions/generators

1 file changed

+3
-0
lines changed

python/ql/test/query-tests/Exceptions/generators/test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,6 @@ def next_in_comp(seq, fields):
5050

5151
def ok5(seq):
5252
yield next(iter([]), 'foo')
53+
54+
def ok6(seq):
55+
yield next(iter([]), default='foo')

0 commit comments

Comments
 (0)