Skip to content

Commit

Permalink
fix assertations in async with tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jettify committed Jul 17, 2016
1 parent 0202d23 commit 0bcd9af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/pep492/test_async_with.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 0bcd9af

Please sign in to comment.