From 1163da89163f357003007b14f458a2c28f2e0a8e Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 8 Oct 2021 17:32:52 -0700 Subject: [PATCH] Update test to handle Python 3.10 error message differenc, refs #1482 --- tests/test_canned_queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_canned_queries.py b/tests/test_canned_queries.py index 4186a97c..b8c2baec 100644 --- a/tests/test_canned_queries.py +++ b/tests/test_canned_queries.py @@ -353,4 +353,4 @@ def test_magic_parameters_cannot_be_used_in_arbitrary_queries(magic_parameters_c "/data.json?sql=select+:_header_host&_shape=array" ) assert 400 == response.status - assert "You did not supply a value for binding 1." == response.json["error"] + assert response.json["error"].startswith("You did not supply a value for binding")