Skip to content

Commit 0a2191b

Browse files
committed
moar changes
1 parent 1e1a900 commit 0a2191b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/ast/test_ast_driver.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838

3939
DATA_DIR = TEST_DIR / "data"
4040

41+
EXPECTED_FAILING_TEST_CASES = {"sproc.test"}
42+
4143

4244
@dataclass
4345
class TestCase:
@@ -195,7 +197,7 @@ def compare_base64_results(
195197
actual_message: proto.Request,
196198
expected_message: proto.Request,
197199
exclude_symbols_udfs_and_src: bool = False,
198-
test_case: TestCase = None,
200+
test_case_file_name: str = None,
199201
):
200202
"""
201203
Serialize and deterministically compare two protobuf results.
@@ -245,7 +247,7 @@ def compare_base64_results(
245247
expected_message_to_compare = normalize_temp_names(expected_message)
246248

247249
if actual_message_to_compare != expected_message_to_compare:
248-
if test_case and test_case.filename == "sproc.test":
250+
if test_case_file_name and test_case_file_name in EXPECTED_FAILING_TEST_CASES:
249251
return
250252
assert actual_message_to_compare == expected_message_to_compare
251253

@@ -324,7 +326,7 @@ def test_ast(session, tables, test_case):
324326
actual,
325327
expected,
326328
exclude_symbols_udfs_and_src=True,
327-
test_case=test_case,
329+
test_case_file_name=test_case.filename,
328330
)
329331

330332
except AssertionError as e:

0 commit comments

Comments
 (0)