mirror of
https://github.com/github/codeql.git
synced 2026-05-03 04:39:29 +02:00
Python: Add copy of extractor tests
These get to live next to the existing library and query tests, and are run as part of both the Python 2 and Python 3 language tests.
This commit is contained in:
27
python/ql/test/extractor-tests/async/test.py
Normal file
27
python/ql/test/extractor-tests/async/test.py
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
def normal():
|
||||
pass
|
||||
|
||||
async def is_async():
|
||||
pass
|
||||
|
||||
def decorator(func):
|
||||
return func
|
||||
|
||||
@decorator
|
||||
def deco():
|
||||
pass
|
||||
|
||||
@decorator
|
||||
async def deco_async():
|
||||
pass
|
||||
|
||||
|
||||
|
||||
async def foo():
|
||||
async for x in y:
|
||||
async with a as b:
|
||||
pass
|
||||
await z
|
||||
|
||||
|
||||
Reference in New Issue
Block a user