Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Close the connection.

:param purge: If True (the default), the receive buffer will
              be purged.

src/t/u/turnstile-HEAD/tests/unit/test_remote.py   turnstile(Download)
        conn._recvbuf_partial = 'testing'
 
        conn.close()
 
        sock.close.assert_called_once_with()
 
        # Make sure this doesn't raise an error
        conn.close()
 
    @mock.patch.object(remote.Connection, 'close')