Skip to content

Commit 2ff939b

Browse files
committed
chore(ag-ui): eliminate zip strict
Eliminate the use of zip with the strict=True option as it's not supported in python 3.9.
1 parent a2b9287 commit 2ff939b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_ag_ui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,12 @@ def _fake_uuid4() -> uuid.UUID:
172172
def assert_events(events: list[str], expected_events: list[str], *, loose: bool = False) -> None:
173173
expected: str
174174
event: str
175-
for event, expected in zip(events, expected_events, strict=True):
175+
for event, expected in zip(events, expected_events):
176176
if loose:
177177
expected = normalize_uuids(expected)
178178
event = normalize_uuids(event)
179179
assert event == f'data: {expected}\n\n'
180+
assert len(events) == len(expected_events)
180181

181182

182183
def normalize_uuids(text: str) -> str:

0 commit comments

Comments
 (0)