From d1e23d760c2d68f1c722183e856819765753f239 Mon Sep 17 00:00:00 2001 From: jochen Date: Wed, 29 May 2024 07:59:18 +0200 Subject: [PATCH] Fix failing test on mac --- tests/test_test_sqlserver.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_test_sqlserver.py b/tests/test_test_sqlserver.py index 07169dbf..876152ba 100644 --- a/tests/test_test_sqlserver.py +++ b/tests/test_test_sqlserver.py @@ -1,7 +1,6 @@ import logging import os -import pymssql import pytest from testcontainers.mssql import SqlServerContainer @@ -53,6 +52,9 @@ def _setup_datacontract(): def _init_sql(): + # import locally as a top level import of pymssql fails on ARM macs + import pymssql + connection = pymssql.connect( database=sql_server.SQLSERVER_DBNAME, user=sql_server.SQLSERVER_USER,