From 430af90d77495cffd5065c53cf56afc4547d47f8 Mon Sep 17 00:00:00 2001 From: MithunR Date: Mon, 24 Jun 2024 13:04:28 -0700 Subject: [PATCH] Update integration_tests/src/main/python/conftest.py This handles cases like `cache_test.py` which should run with the default conf for `spark.sql.ansi.enabled`. --- integration_tests/src/main/python/conftest.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/integration_tests/src/main/python/conftest.py b/integration_tests/src/main/python/conftest.py index 2b753642c20..6af40b99768 100644 --- a/integration_tests/src/main/python/conftest.py +++ b/integration_tests/src/main/python/conftest.py @@ -221,7 +221,8 @@ def pytest_runtest_setup(item): _allow_any_non_gpu_databricks = False non_gpu_databricks = item.get_closest_marker('allow_non_gpu_databricks') non_gpu = item.get_closest_marker('allow_non_gpu') - _per_test_ansi_mode_enabled = not item.get_closest_marker('disable_ansi_mode') + _per_test_ansi_mode_enabled = None if item.get_closest_marker('disable_ansi_mode') is None \ + else not item.get_closest_marker('disable_ansi_mode') if non_gpu_databricks: if is_databricks_runtime():