diff --git a/tests/test_search.py b/tests/test_search.py index 7612332470..a5f04a9694 100644 --- a/tests/test_search.py +++ b/tests/test_search.py @@ -2267,5 +2267,5 @@ def test_query_timeout(r: redis.Redis): q1 = Query("foo").timeout(0) assert q1.get_args() == ["foo", "TIMEOUT", 0, "LIMIT", 0, 10] q2 = Query("foo").timeout("not_a_number") - with pytest.raises(redis.ResponseError): + with pytest.raises(AttributeError): r.ft().search(q2)