Skip to content

Commit 25d4ddf

Browse files
authored
fixed the query test to catach AttributeError
1 parent 3fb2c68 commit 25d4ddf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_search.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2267,5 +2267,5 @@ def test_query_timeout(r: redis.Redis):
22672267
q1 = Query("foo").timeout(0)
22682268
assert q1.get_args() == ["foo", "TIMEOUT", 0, "LIMIT", 0, 10]
22692269
q2 = Query("foo").timeout("not_a_number")
2270-
with pytest.raises(redis.ResponseError):
2270+
with pytest.raises(AttributeError):
22712271
r.ft().search(q2)

0 commit comments

Comments
 (0)