Skip to content

Commit

Permalink
Update integration_tests/src/main/python/conftest.py
Browse files Browse the repository at this point in the history
This handles cases like `cache_test.py` which should run with the default conf for `spark.sql.ansi.enabled`.
  • Loading branch information
mythrocks authored Jun 24, 2024
1 parent 08e4eab commit 430af90
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion integration_tests/src/main/python/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 430af90

Please # to comment.