Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion tests/unit/test_patterns.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,8 @@ def test_deduplicate_stream_is_a_generator(self):
assert isinstance(out, types.GeneratorType) # lazy, not a materialised list
result = list(out)
if dedup.enabled:
assert "a b c" in result and "x y z" in result
assert "a b c" in result
assert "x y z" in result
else:
assert result == ["a b c", "a b c", "x y z"] # passthrough when disabled

Expand Down
Loading