diff --git a/tests/python_client/testcases/test_query.py b/tests/python_client/testcases/test_query.py index d388b06a1525f..2585da29a8d3d 100644 --- a/tests/python_client/testcases/test_query.py +++ b/tests/python_client/testcases/test_query.py @@ -443,9 +443,8 @@ def test_query_expr_wrong_term_keyword(self): collection_w.query(expr_1, check_task=CheckTasks.err_res, check_items=error_1) expr_3 = f'{ct.default_int64_field_name} in not [1, 2]' - error_3 = {ct.err_code: 65535, ct.err_msg: "cannot parse expression: int64 in not [1, 2], error: " - "contains_any operation are only supported explicitly " - "specified element, got: not[1,2]"} + error_3 = {ct.err_code: 65535, ct.err_msg: "cannot parse expression: int64 in not [1, 2], " + "error: value 'not[1,2]' in list cannot be a non-const expression"} collection_w.query(expr_3, check_task=CheckTasks.err_res, check_items=error_3) @pytest.mark.tags(CaseLabel.L1)