(aconn)
| 714 | |
| 715 | |
| 716 | async def test_copy_query(aconn): |
| 717 | cur = aconn.cursor() |
| 718 | async with cur.copy("copy (select 1) to stdout") as copy: |
| 719 | assert cur._query.query == b"copy (select 1) to stdout" |
| 720 | assert not cur._query.params |
| 721 | await alist(copy) |
| 722 | |
| 723 | |
| 724 | async def test_cant_reenter(aconn): |