diff options
author | Yury Selivanov <yury@magic.io> | 2019-05-27 13:57:20 (GMT) |
---|---|---|
committer | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2019-05-27 13:57:19 (GMT) |
commit | 8cd5165ba05ff57cfdbbc71c393bddad1ce1ab87 (patch) | |
tree | ddfd76a4b278f1969c82af389afcc1641cabb005 /Lib/test/test_asyncio/test_events.py | |
parent | 674ee1260025ff36f27e5d70ff6b66e3aab880bf (diff) | |
download | cpython-8cd5165ba05ff57cfdbbc71c393bddad1ce1ab87.zip cpython-8cd5165ba05ff57cfdbbc71c393bddad1ce1ab87.tar.gz cpython-8cd5165ba05ff57cfdbbc71c393bddad1ce1ab87.tar.bz2 |
bpo-37027: Return a proxy socket object from transp.get_extra_info('socket') (GH-13530)
Return a safe to use proxy socket object from `transport.get_extra_info('socket')`
https://bugs.python.org/issue37027
Diffstat (limited to 'Lib/test/test_asyncio/test_events.py')
-rw-r--r-- | Lib/test/test_asyncio/test_events.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_asyncio/test_events.py b/Lib/test/test_asyncio/test_events.py index 0ae6eab..e89db99 100644 --- a/Lib/test/test_asyncio/test_events.py +++ b/Lib/test/test_asyncio/test_events.py @@ -1118,7 +1118,7 @@ class EventLoopTestsMixin: f = self.loop.create_server(TestMyProto, sock=sock_ob) server = self.loop.run_until_complete(f) sock = server.sockets[0] - self.assertIs(sock, sock_ob) + self.assertEqual(sock.fileno(), sock_ob.fileno()) host, port = sock.getsockname() self.assertEqual(host, '0.0.0.0') |