diff --git a/tests/unit/test_patterns.py b/tests/unit/test_patterns.py index b5199a7..a55f350 100644 --- a/tests/unit/test_patterns.py +++ b/tests/unit/test_patterns.py @@ -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