From 0f5b573d3d1909f8cd28aaea240a6a0e734faa92 Mon Sep 17 00:00:00 2001 From: Mike Edmunds Date: Mon, 21 Jul 2025 13:09:15 -0700 Subject: [PATCH] Fixed incorrectly concatenated string in SimpleBlockTagTests.test_simple_block_tag_with_context_missing_content(). --- tests/template_tests/test_custom.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/template_tests/test_custom.py b/tests/template_tests/test_custom.py index 9ec27b481f..424c110875 100644 --- a/tests/template_tests/test_custom.py +++ b/tests/template_tests/test_custom.py @@ -514,9 +514,11 @@ class SimpleBlockTagTests(TagTestCase): def test_simple_block_tag_with_context_missing_content(self): # The 'content' parameter must be present when takes_context is True - msg = "'simple_block_tag_with_context_without_content' is decorated with " - "takes_context=True so it must have a first argument of 'context' and a " - "second argument of 'content'" + msg = ( + "'simple_block_tag_with_context_without_content' is decorated with " + "takes_context=True so it must have a first argument of 'context' and a " + "second argument of 'content'" + ) with self.assertRaisesMessage(TemplateSyntaxError, msg): self.engine.from_string( "{% load custom %}{% simple_block_tag_with_context_without_content %}"