ref = weakref.ref(p)
del p
assert not ref()
- assert not recwarn
+ assert not recwarn, [str(w.message) for w in recwarn.list]
@pytest.mark.slow
conn = Connection.connect(dsn)
conn.close()
del conn
- assert not recwarn
+ assert not recwarn, [str(w.message) for w in recwarn.list]
conn = Connection.connect(dsn)
del conn
with Connection.connect(dsn) as conn:
pass
del conn
- assert not recwarn
+ assert not recwarn, [str(w.message) for w in recwarn.list]
def test_context_commit(conn, dsn):
conn = await AsyncConnection.connect(dsn)
await conn.close()
del conn
- assert not recwarn
+ assert not recwarn, [str(w.message) for w in recwarn.list]
conn = await AsyncConnection.connect(dsn)
del conn
async with await AsyncConnection.connect(dsn) as conn:
pass
del conn
- assert not recwarn
+ assert not recwarn, [str(w.message) for w in recwarn.list]
async def test_context_commit(aconn, dsn):