[Python-checkins] cpython (3.4): Issue #20682: test_asyncio, _basetest_create_connection() checks also the

larry.hastings python-checkins at python.org
Mon Mar 17 07:32:11 CET 2014


http://hg.python.org/cpython/rev/9aac931d7bf5
changeset:   89733:9aac931d7bf5
branch:      3.4
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Feb 19 02:21:08 2014 +0100
summary:
  Issue #20682: test_asyncio, _basetest_create_connection() checks also the
sockname, as _basetest_create_ssl_connection().

files:
  Lib/test/test_asyncio/test_events.py |  1 +
  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
--- a/Lib/test/test_asyncio/test_events.py
+++ b/Lib/test/test_asyncio/test_events.py
@@ -503,6 +503,7 @@
         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()

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list