Skip to content

Commit

Permalink
Fix test syntax for Python<=3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
gasman committed Jul 11, 2024
1 parent 323af12 commit 3cbf7e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wagtail/search/tests/test_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def test_long_queries(self):

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")
Expand Down

0 comments on commit 3cbf7e0

Please sign in to comment.