Skip to content

Commit a72f5ee

Browse files
committed
fix test msg
1 parent 26660eb commit a72f5ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/table/test_partitioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def test_incompatible_non_primitive_type() -> None:
286286
with pytest.raises(ValidationError) as exc:
287287
spec.check_compatible(schema)
288288

289-
assert "Cannot partition by non-primitive source field: struct<>" in str(exc.value)
289+
assert "Cannot partition by non-primitive source field: 1: foo: optional struct<>" in str(exc.value)
290290

291291

292292
def test_incompatible_transform_source_type() -> None:
@@ -297,4 +297,4 @@ def test_incompatible_transform_source_type() -> None:
297297
with pytest.raises(ValidationError) as exc:
298298
spec.check_compatible(schema)
299299

300-
assert "Invalid source type int for transform: year" in str(exc.value)
300+
assert "Invalid source field foo with type int for transform: year" in str(exc.value)

0 commit comments

Comments
 (0)