def test_or_bool_doesnt_loop_infinitely_issue_37():
    q = query.Match(f=42) | ~ query.Match(f=47)

    assert q <= query.Bool(should=[query.Bool(must_not=[query.Match(f=47)]), query.Match(f=42)])
dataset/ETHPy150Open elastic/elasticsearch-dsl-py/test_elasticsearch_dsl/test_query.py/test_or_bool_doesnt_loop_infinitely_issue_37/operator `==` -> `<=`