(self)
| 103 | self.set_event_loop(self.loop) |
| 104 | |
| 105 | def test_close(self): |
| 106 | a, b = socket.socketpair() |
| 107 | trans = self.loop._make_socket_transport(a, asyncio.Protocol()) |
| 108 | f = asyncio.ensure_future(self.loop.sock_recv(b, 100), loop=self.loop) |
| 109 | trans.close() |
| 110 | self.loop.run_until_complete(f) |
| 111 | self.assertEqual(f.result(), b'') |
| 112 | b.close() |
| 113 | |
| 114 | def test_double_bind(self): |
| 115 | ADDRESS = r'\\.\pipe\test_double_bind-%s' % os.getpid() |
nothing calls this directly
no test coverage detected