Fix docstring in test_utils/aiohttp.py (#34040)

* fix docstring

* fixed empty spaces
pull/34080/head
Ziv 2020-04-11 21:20:19 +03:00 committed by GitHub
parent 6e6ebb9495
commit ea9f1376a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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())