Skip to content

Commit ecd4f85

Browse files
committed
Remove unnecessary patch in test_local_no_registered_event_listener
1 parent 1acd406 commit ecd4f85

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tests/test_client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,10 +1121,7 @@ async def test_local_no_registered_event_listener(
11211121
status=400,
11221122
)
11231123

1124-
with (
1125-
patch.object(aiohttp.ClientSession, "post", return_value=resp),
1126-
pytest.raises(exceptions.NoRegisteredEventListenerError),
1127-
):
1124+
with pytest.raises(exceptions.NoRegisteredEventListenerError):
11281125
await check_response(resp)
11291126

11301127
@pytest.mark.asyncio

0 commit comments

Comments
 (0)