diff --git a/tests/test_026_windows_dll_search.py b/tests/test_026_windows_dll_search.py index 24835ef3..8b9b3f95 100644 --- a/tests/test_026_windows_dll_search.py +++ b/tests/test_026_windows_dll_search.py @@ -21,7 +21,14 @@ import re from pathlib import Path -_LOADER_SRC = Path(__file__).resolve().parents[1] / "mssql_python" / "pybind" / "ddbc_bindings.cpp" +import pytest + +_PYBIND_DIR = Path(__file__).resolve().parents[1] / "mssql_python" / "pybind" +_LOADER_SRC = _PYBIND_DIR / "ddbc_bindings.cpp" +pytestmark = pytest.mark.skipif( + not _PYBIND_DIR.is_dir(), + reason="requires a source checkout; isolated wheel tests omit the source tree", +) def _code_without_comments(text):