mirror of
https://github.com/github/codeql.git
synced 2026-05-02 20:25:13 +02:00
Update python/ql/test/query-tests/Exceptions/generators/test.py
Co-Authored-By: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
committed by
GitHub
parent
ff6e0ce35c
commit
9560c804b8
@@ -50,3 +50,6 @@ def next_in_comp(seq, fields):
|
||||
|
||||
def ok5(seq):
|
||||
yield next(iter([]), 'foo')
|
||||
|
||||
def ok6(seq):
|
||||
yield next(iter([]), default='foo')
|
||||
|
||||
Reference in New Issue
Block a user