Skip to content

Commit 1e4cbb8

Browse files
committed
Cleanup
1 parent 7a03e39 commit 1e4cbb8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

tests/test_serialization_context.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1302,16 +1302,12 @@ def assert_trace(trace: list[TraceItem], expected: list[TraceItem]):
13021302
history: list[str] = []
13031303
for item, expected_item in zip_longest(trace, expected):
13041304
if item is None:
1305-
raise AssertionError(
1306-
f"Fewer items in trace than expected.\n\n History:\n{'\n'.join(history)}"
1307-
)
1305+
raise AssertionError("Fewer items in trace than expected.")
13081306
if expected_item is None:
1309-
raise AssertionError(
1310-
f"More items in trace than expected.\n\n History:\n{'\n'.join(history)}"
1311-
)
1307+
raise AssertionError("More items in trace than expected.")
13121308
if item != expected_item:
13131309
raise AssertionError(
1314-
f"Item:\n{pformat(item)}\n\ndoes not match expected:\n\n {pformat(expected_item)}.\n\n History:\n{'\n'.join(history)}"
1310+
f"Item:\n{pformat(item)}\n\ndoes not match expected:\n\n {pformat(expected_item)}."
13151311
)
13161312
history.append(f"{item.context_type} {item.method}")
13171313

0 commit comments

Comments
 (0)