(aconn)
| 722 | |
| 723 | |
| 724 | async def test_cant_reenter(aconn): |
| 725 | cur = aconn.cursor() |
| 726 | async with cur.copy("copy (select 1) to stdout") as copy: |
| 727 | await alist(copy) |
| 728 | |
| 729 | with pytest.raises(TypeError): |
| 730 | async with copy: |
| 731 | await alist(copy) |
| 732 | |
| 733 | |
| 734 | async def test_str(aconn): |