Skip to content

Commit

Permalink
test: update error string
Browse files Browse the repository at this point in the history
  • Loading branch information
hollandjg committed May 24, 2024
1 parent c5ade53 commit 79b1713
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/autora/state_history_delta.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,10 +453,7 @@ def _history_filter_to_last(history: Sequence[Union[Mapping, State]], condition)
>>> list(_history_filter_to_last(h, lambda e: "nowhere" in e))
Traceback (most recent call last):
...
TypeError: argument of type 'State' is not iterable
>>> list(_history_filter_to_last(h, lambda e: e.get("nowhere", None)))
[]
TypeError: argument of type 'NState' is not iterable
"""
filtered_history = _filter_to_last(condition, history)
Expand Down

0 comments on commit 79b1713

Please sign in to comment.