From 7af87e08b9d1924a89db449a24d5426c7e65ecac Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Thu, 11 Jul 2024 12:12:51 +0200 Subject: [PATCH] Fix test syntax for Python<=3.11 --- wagtail/search/tests/test_queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wagtail/search/tests/test_queries.py b/wagtail/search/tests/test_queries.py index 4b7e81b5bb..73f8cf2a7a 100644 --- a/wagtail/search/tests/test_queries.py +++ b/wagtail/search/tests/test_queries.py @@ -181,7 +181,7 @@ class TestParseQueryString(SimpleTestCase): def test_long_filter_value(self): filters, _ = parse_query_string(f'foo:ba{"r" * 60_000}') - self.assertEqual(filters.dict(), {"foo": f"ba{"r" * 60_000}"}) + self.assertEqual(filters.dict(), {"foo": f'ba{"r" * 60_000}'}) def test_joined_filters(self): filters, query = parse_query_string("foo:bar:baz")