mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
asyncio: sync with Tulip
* Tulip issue #182: Improve logs of BaseEventLoop._run_once() - Don't log non-blocking poll - Only log polling with a timeout if it gets events or if it timed out after more than 1 second. * Fix some pyflakes warnings: remove unused imports
This commit is contained in:
parent
3740d589f7
commit
770e48d017
6 changed files with 20 additions and 16 deletions
|
@ -715,7 +715,7 @@ class EventLoopTestsMixin:
|
|||
with self.assertRaisesRegex(ValueError,
|
||||
'path and sock can not be specified '
|
||||
'at the same time'):
|
||||
server = self.loop.run_until_complete(f)
|
||||
self.loop.run_until_complete(f)
|
||||
|
||||
def _create_ssl_context(self, certfile, keyfile=None):
|
||||
sslcontext = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue