(aconn_cls, dsn, aconn)
| 890 | |
| 891 | |
| 892 | async def test_connect_context_copy(aconn_cls, dsn, aconn): |
| 893 | aconn.adapters.register_dumper(str, make_bin_dumper("b")) |
| 894 | aconn.adapters.register_dumper(str, make_dumper("t")) |
| 895 | |
| 896 | conn2 = await aconn_cls.connect(dsn, context=aconn) |
| 897 | |
| 898 | cur = await conn2.execute("select %s", ["hello"]) |
| 899 | assert (await cur.fetchone())[0] == "hellot" |
| 900 | cur = await conn2.execute("select %b", ["hello"]) |
| 901 | assert (await cur.fetchone())[0] == "hellob" |
| 902 | await conn2.close() |
| 903 | |
| 904 | |
| 905 | async def test_cancel_closed(aconn): |
nothing calls this directly
no test coverage detected
searching dependent graphs…