From: Victor Stinner Date: Wed, 19 Feb 2014 01:21:08 +0000 (+0100) Subject: Issue #20682: test_asyncio, _basetest_create_connection() checks also the X-Git-Tag: v3.4.0rc2~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74d519fcc685f903a9127987ae53ff75eaf17d73;p=python Issue #20682: test_asyncio, _basetest_create_connection() checks also the sockname, as _basetest_create_ssl_connection(). --- diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index a0a4d02ca8..15cc520298 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -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()