conn.autocommit = True
with conn.pipeline():
cur = conn.execute("select 'test'")
- cur.fetchone() == ("test",)
+ assert cur.fetchone() == ("test",)
assert not notices
await aconn.set_autocommit(True)
async with aconn.pipeline():
cur = await aconn.execute("select 'test'")
- await cur.fetchone() == ("test",)
+ assert (await cur.fetchone()) == ("test",)
assert not notices
conn.autocommit = True
with conn.pipeline():
cur = conn.execute("select 'test'")
- cur.fetchone() == ("test",)
+ assert cur.fetchone() == ("test",)
assert not notices
await aconn.set_autocommit(True)
async with aconn.pipeline():
cur = await aconn.execute("select 'test'")
- await cur.fetchone() == ("test",)
+ assert (await cur.fetchone()) == ("test",)
assert not notices