Skip to content

Commit 782eded

Browse files
Fix olddriver
1 parent 6ad71e7 commit 782eded

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/integ/test_connection.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
ER_NO_ACCOUNT_NAME,
3131
ER_NOT_IMPLICITY_SNOWFLAKE_DATATYPE,
3232
)
33-
from snowflake.connector.errors import Error, HttpError
33+
from snowflake.connector.errors import Error
3434
from snowflake.connector.network import APPLICATION_SNOWSQL, ReauthenticationRequest
3535
from snowflake.connector.sqlstate import SQLSTATE_FEATURE_NOT_SUPPORTED
3636
from snowflake.connector.telemetry import TelemetryField
@@ -54,6 +54,11 @@
5454
except ImportError: # Keep olddrivertest from breaking
5555
ER_FAILED_PROCESSING_QMARK = 252012
5656

57+
try:
58+
from snowflake.connector.errors import HttpError
59+
except ImportError:
60+
pass
61+
5762

5863
def test_basic(conn_testaccount):
5964
"""Basic Connection test."""

0 commit comments

Comments
 (0)