'BlockingConnection no access file descriptor after ConnectionClosed'

def test(self):

    with ForwardServer(remote_addr=(DEFAULT_PARAMS.host, DEFAULT_PARAMS.port), local_linger_args=(1, 0)) as fwd:
        self.connection = self._connect((PARAMS_URL_TEMPLATE % {'port': fwd.server_address[1]}))
    with self.assertRaises(pika.exceptions.ConnectionClosed):
        self.connection.channel()
    self.assertTrue(self.connection.is_closed)
    self.assertFalse(self.connection.is_open)
    self.assertIsNone(self.connection._impl.socket)
    self.assertIsNone(self.connection._impl.socket)
    with self.assertRaises(pika.exceptions.ConnectionClosed):
        self.connection.channel()
