Skip to content

Commit c735b63

Browse files
committed
test: narrow pytest.raises to ConfigError in test_clustered_by_keyword_non_databricks_dialect
1 parent bb70305 commit c735b63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/core/test_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4215,7 +4215,7 @@ def test_clustered_by_quoted_keyword_column():
42154215
@pytest.mark.parametrize("keyword", ["AUTO", "NONE"])
42164216
def test_clustered_by_keyword_non_databricks_dialect(keyword: str):
42174217
"""AUTO/NONE should be rejected for non-Databricks dialects as they are meaningless there."""
4218-
with pytest.raises((ConfigError, Exception)):
4218+
with pytest.raises(ConfigError):
42194219
model = load_sql_based_model(
42204220
d.parse(
42214221
f"""

0 commit comments

Comments
 (0)