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

sockname, as _basetest_create_ssl_connection().
This commit is contained in:
Victor Stinner 2014-02-19 02:21:08 +01:00
parent 884e40b982
commit 8abac348a9
1 changed files with 1 additions and 0 deletions

View File

@ -503,6 +503,7 @@ class EventLoopTestsMixin:
tr, pr = self.loop.run_until_complete(connection_fut) tr, pr = self.loop.run_until_complete(connection_fut)
self.assertIsInstance(tr, asyncio.Transport) self.assertIsInstance(tr, asyncio.Transport)
self.assertIsInstance(pr, asyncio.Protocol) self.assertIsInstance(pr, asyncio.Protocol)
self.assertIsNotNone(tr.get_extra_info('sockname'))
self.loop.run_until_complete(pr.done) self.loop.run_until_complete(pr.done)
self.assertGreater(pr.nbytes, 0) self.assertGreater(pr.nbytes, 0)
tr.close() tr.close()