From 64ee9945b1f7f753671bbdd1227a8186d19c6452 Mon Sep 17 00:00:00 2001 From: Tristan Simas Date: Fri, 23 Oct 2026 19:30:57 -0400 Subject: [PATCH] Assert bare Path encoding uses its declared text boundary The Path decoder deliberately registers Path origins. Assert the exact encoded path instead of requiring the obsolete TypeError. No production source changes. --- tests/test_field_codec.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_field_codec.py b/tests/test_field_codec.py index 9915889ca4..1a400314d6 100644 --- a/tests/test_field_codec.py +++ b/tests/test_field_codec.py @@ -381,8 +381,7 @@ class Scalars: for key in encoded: with pytest.raises((TypeError, ValueError)): FieldCodec.decode(Scalars, {**encoded, key: 7}) - with pytest.raises(TypeError): - FieldCodec.encode(value.path) + assert FieldCodec.encode(value.path) == "/saved/history" @dataclass(frozen=True) class ScalarRow(TypedTable, declared_name="field_representation_rows"):