File test-utils.patch of Package python-Django.41924

From 2a79837e19d2569c3e5162f3e0181a4e29bb7dba Mon Sep 17 00:00:00 2001
From: Natalia <124304+nessita@users.noreply.github.com>
Date: Mon, 21 Jul 2025 15:23:32 -0300
Subject: [PATCH] [4.2.x] Fixed
 test_utils.tests.HTMLEqualTests.test_parsing_errors following Python's
 HTMLParser fixed parsing.

Further details about Python changes can be found in:
https://github.com/python/cpython/commit/0243f97cbadec8d985e63b1daec5d1cbc850cae3.

Refs #36499. Thank you Clifford Gama for the thorough review!

Backport of e4515dad7a6d953c0bd2414127ba36e1446ff41a from main.
---
 tests/test_utils/tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py
index a440e7d962a0..e4c613e96989 100644
--- a/tests/test_utils/tests.py
+++ b/tests/test_utils/tests.py
@@ -966,7 +966,7 @@ def test_parsing_errors(self):
             "('Unexpected end tag `div` (Line 1, Column 6)', (1, 6))"
         )
         with self.assertRaisesMessage(AssertionError, error_msg):
-            self.assertHTMLEqual("< div></ div>", "<div></div>")
+            self.assertHTMLEqual("< div></div>", "<div></div>")
         with self.assertRaises(HTMLParseError):
             parse_html("</p>")
 
openSUSE Build Service is sponsored by