Python: model other awaiting constructs

This commit is contained in:
Rasmus Lerchedahl Petersen
2021-09-27 14:32:55 +02:00
parent 15b07bfcc0
commit f6311bf051
2 changed files with 15 additions and 2 deletions

View File

@@ -43,10 +43,10 @@ async def test_cursor():
pcursor = await pstmt.cursor() # $ getSql="psql"
await pcursor.fetch()
async for record in conn.cursor("sql"): # $ MISSING: getSql="sql"
async for record in conn.cursor("sql"): # $ getSql="sql"
pass
async for record in pstmt.cursor(): # $ MISSING: getSql="psql"
async for record in pstmt.cursor(): # $ getSql="psql"
pass
cursor_factory = conn.cursor("sql")