def METHOD_NAME(self):
    from snowflake.snowpark.exceptions import SnowparkServerException
    mock_sql_return = MagicMock()
    mock_sql_return.to_pandas = MagicMock(side_effect=Exception("oh noes :("))
    conn = SnowparkConnection("my_snowpark_connection")
    conn._instance.sql.return_value = mock_sql_return
    with pytest.raises(Exception):
        conn.query("SELECT 1;")
    # conn._connect should have just been called once when first creating the
    # connection.
    assert conn._connect.call_count == 1