diff --git a/tests/test_util/aiohttp.py b/tests/test_util/aiohttp.py index 23112de5558..9b2a4380cae 100644 --- a/tests/test_util/aiohttp.py +++ b/tests/test_util/aiohttp.py @@ -322,6 +322,9 @@ class MockLongPollSideEffect: self.semaphore.release() def stop(self): - """Stop the current request and future ones. Avoids exception if there is someone waiting when exiting test.""" + """Stop the current request and future ones. + + This avoids an exception if there is someone waiting when exiting test. + """ self.stopping = True self.queue_response(exc=ClientError())