def METHOD_NAME(self):
    sock = get_socket_with_port()
    with closing(sock):
        port = sock.getsockname()[1]
        # on the worker port conflict shouldn't matter, it should just timeout
        # since we never created a server
        with self.assertRaises(DistNetworkError):
            create_c10d_store(
                is_server=False,
                server_addr=socket.gethostname(),
                server_port=port,
                timeout=1,
            )