Kaydet (Commit) 8abac348 authored tarafından Victor Stinner's avatar Victor Stinner

Issue #20682: test_asyncio, _basetest_create_connection() checks also the

sockname, as _basetest_create_ssl_connection().
üst 884e40b9
......@@ -503,6 +503,7 @@ class EventLoopTestsMixin:
tr, pr = self.loop.run_until_complete(connection_fut)
self.assertIsInstance(tr, asyncio.Transport)
self.assertIsInstance(pr, asyncio.Protocol)
self.assertIsNotNone(tr.get_extra_info('sockname'))
self.loop.run_until_complete(pr.done)
self.assertGreater(pr.nbytes, 0)
tr.close()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment