Skip to content

Commit

Permalink
Address a few new linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Oct 15, 2023
1 parent aa9b82d commit e034bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def c(arg):
return arg

async def d(arg):
assert await(c(arg)) == arg
assert (await c(arg)) == arg
return await b(arg)

assert asyncio.iscoroutinefunction(b)
Expand Down Expand Up @@ -103,7 +103,7 @@ def a(arg):
async def b(arg):
with pytest.raises(RuntimeError) as error:
await a(arg)
assert type(error.value) == RuntimeError and \
assert isinstance(error.value, RuntimeError) and \
str(error.value) == '42'

asyncio.get_event_loop().run_until_complete(b(42))
Expand All @@ -116,7 +116,7 @@ async def a(arg):
def b(arg):
with pytest.raises(RuntimeError) as error:
await_(a(arg))
assert type(error.value) == RuntimeError and \
assert isinstance(error.value, RuntimeError) and \
str(error.value) == '42'

async def c(arg):
Expand Down

0 comments on commit e034bff

Please sign in to comment.