3333 ER_NO_ACCOUNT_NAME ,
3434 ER_NOT_IMPLICITY_SNOWFLAKE_DATATYPE ,
3535)
36- from snowflake .connector .errors import Error , ForbiddenError
36+ from snowflake .connector .errors import Error
3737from snowflake .connector .network import APPLICATION_SNOWSQL , ReauthenticationRequest
3838from snowflake .connector .sqlstate import SQLSTATE_FEATURE_NOT_SUPPORTED
3939from snowflake .connector .telemetry import TelemetryField
@@ -491,8 +491,9 @@ def exe(sql):
491491
492492
493493@pytest .mark .timeout (15 )
494+ @pytest .mark .skipolddriver
494495def test_invalid_account_timeout ():
495- with pytest .raises (ForbiddenError ):
496+ with pytest .raises (OperationalError ):
496497 snowflake .connector .connect (
497498 account = "bogus" , user = "test" , password = "test" , login_timeout = 5
498499 )
@@ -518,6 +519,7 @@ def test_invalid_proxy(db_parameters):
518519
519520
520521@pytest .mark .timeout (15 )
522+ @pytest .mark .skipolddriver
521523def test_eu_connection (tmpdir ):
522524 """Tests setting custom region.
523525
@@ -530,7 +532,7 @@ def test_eu_connection(tmpdir):
530532 import os
531533
532534 os .environ ["SF_OCSP_RESPONSE_CACHE_SERVER_ENABLED" ] = "true"
533- with pytest .raises (ForbiddenError ):
535+ with pytest .raises (OperationalError ):
534536 # must reach Snowflake
535537 snowflake .connector .connect (
536538 account = "testaccount1234" ,
@@ -544,6 +546,7 @@ def test_eu_connection(tmpdir):
544546 )
545547
546548
549+ @pytest .mark .skipolddriver
547550def test_us_west_connection (tmpdir ):
548551 """Tests default region setting.
549552
@@ -553,7 +556,7 @@ def test_us_west_connection(tmpdir):
553556 Notes:
554557 Region is deprecated.
555558 """
556- with pytest .raises (ForbiddenError ):
559+ with pytest .raises (OperationalError ):
557560 # must reach Snowflake
558561 snowflake .connector .connect (
559562 account = "testaccount1234" ,
0 commit comments