From aeb771ccb581541caa54717b04468793f02a23c6 Mon Sep 17 00:00:00 2001 From: Yuyang Wang Date: Mon, 7 Oct 2024 09:40:18 -0700 Subject: [PATCH] Fix a test to align with server side BCR (#2065) --- test/integ/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integ/test_connection.py b/test/integ/test_connection.py index 4891a6fc5..8888d23c3 100644 --- a/test/integ/test_connection.py +++ b/test/integ/test_connection.py @@ -34,7 +34,7 @@ ER_NO_ACCOUNT_NAME, ER_NOT_IMPLICITY_SNOWFLAKE_DATATYPE, ) -from snowflake.connector.errors import Error +from snowflake.connector.errors import Error, InterfaceError from snowflake.connector.network import APPLICATION_SNOWSQL, ReauthenticationRequest from snowflake.connector.sqlstate import SQLSTATE_FEATURE_NOT_SUPPORTED from snowflake.connector.telemetry import TelemetryField @@ -555,7 +555,7 @@ def test_eu_connection(tmpdir): import os os.environ["SF_OCSP_RESPONSE_CACHE_SERVER_ENABLED"] = "true" - with pytest.raises(OperationalError): + with pytest.raises(InterfaceError): # must reach Snowflake snowflake.connector.connect( account="testaccount1234",