summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_asyncio
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-02-19 01:21:08 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-02-19 01:21:08 (GMT)
commit8abac348a9a6d8f64527f913609789f50251ba58 (patch)
tree4f3aeab4668d74cd80056d5cb25f3fe3e2a7abad /Lib/test/test_asyncio
parent884e40b9828593febcb91f9e56614f0c9b26e1b7 (diff)
downloadcpython-8abac348a9a6d8f64527f913609789f50251ba58.zip
cpython-8abac348a9a6d8f64527f913609789f50251ba58.tar.gz
cpython-8abac348a9a6d8f64527f913609789f50251ba58.tar.bz2
Issue #20682: test_asyncio, _basetest_create_connection() checks also the
sockname, as _basetest_create_ssl_connection().
Diffstat (limited to 'Lib/test/test_asyncio')
-rw-r--r--Lib/test/test_asyncio/test_events.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py
index a0a4d02..15cc520 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()