コード例 #1
0
    def test_sendto_blocking(self):
        if sys.platform == 'win32':
            if isinstance(self.loop, asyncio.ProactorEventLoop):
                raise unittest.SkipTest('Not relevant to ProactorEventLoop')

        with test_utils.run_udp_echo_server() as server_address:
            self.loop.run_until_complete(
                self._basetest_datagram_sendto_blocking(server_address))
コード例 #2
0
 def test_recvfrom_into(self):
     with test_utils.run_udp_echo_server() as server_address:
         self.loop.run_until_complete(
             self._basetest_datagram_recvfrom_into(server_address))