From 0bcd9af480f7f81ac6fe465fbd12a076e74df816 Mon Sep 17 00:00:00 2001 From: Nickolai Novik Date: Sun, 17 Jul 2016 12:35:08 +0300 Subject: [PATCH] fix assertations in async with tests --- tests/pep492/test_async_with.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/pep492/test_async_with.py b/tests/pep492/test_async_with.py index 9193e6e1..52a40505 100644 --- a/tests/pep492/test_async_with.py +++ b/tests/pep492/test_async_with.py @@ -244,7 +244,7 @@ async def test_transaction_context_manager_error(loop, mysql_params, table): raise RuntimeError('boom') assert str(ctx.value) == 'boom' assert not tr.is_active - assert conn.closed + assert conn.closed @pytest.mark.run_loop @@ -265,4 +265,4 @@ async def test_transaction_context_manager_commit_once(loop, mysql_params, # check for double commit one more time await tr2.commit() assert not tr2.is_active - assert conn.closed + assert conn.closed