Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Django for openSUSE:Factory checked in at 2025-07-20 15:28:54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Django (Old) and /work/SRC/openSUSE:Factory/.python-Django.new.8875 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Django" Sun Jul 20 15:28:54 2025 rev:134 rq:1294515 version:5.2.4 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Django/python-Django.changes 2025-07-08 15:28:22.996600086 +0200 +++ /work/SRC/openSUSE:Factory/.python-Django.new.8875/python-Django.changes 2025-07-20 15:29:55.326180066 +0200 @@ -1,0 +2,6 @@ +Sat Jul 19 06:51:37 UTC 2025 - Markéta Machová <mmach...@suse.com> + +- Add upstream test_strip_tags.patch to fix test errors with + at-this-point future python interpreters + +------------------------------------------------------------------- New: ---- test_strip_tags.patch ----------(New B)---------- New: - Add upstream test_strip_tags.patch to fix test errors with at-this-point future python interpreters ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Django.spec ++++++ --- /var/tmp/diff_new_pack.ksZnGT/_old 2025-07-20 15:29:56.926246279 +0200 +++ /var/tmp/diff_new_pack.ksZnGT/_new 2025-07-20 15:29:56.930246444 +0200 @@ -30,6 +30,8 @@ Source1: https://www.djangoproject.com/m/pgp/Django-%{version}.checksum.txt Source2: %{name}.keyring Source99: python-Django-rpmlintrc +# PATCH-FIX-UPSTREAM https://github.com/django/django/pull/19639 Fixed #36499 -- Adjusted utils_tests.test_html.TestUtilsHtml.test_strip_tags following Python's HTMLParser new behavior. +Patch0: test_strip_tags.patch BuildRequires: %{python_module Jinja2 >= 2.9.2} BuildRequires: %{python_module Pillow >= 6.2.0} BuildRequires: %{python_module PyYAML} ++++++ test_strip_tags.patch ++++++ >From 578ef30376fd279865d1719fcad064a00c625a6b Mon Sep 17 00:00:00 2001 From: Natalia <124304+ness...@users.noreply.github.com> Date: Mon, 14 Jul 2025 14:45:03 -0300 Subject: [PATCH] Fixed #36499 -- Adjusted utils_tests.test_html.TestUtilsHtml.test_strip_tags following Python's HTMLParser new behavior. --- tests/test_utils/tests.py | 4 ++-- tests/utils_tests/test_html.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py index 494a0ea8d384..0de19eae9072 100644 --- a/tests/test_utils/tests.py +++ b/tests/test_utils/tests.py @@ -959,10 +959,10 @@ def test_parsing_errors(self): self.assertHTMLEqual("", "<p>") error_msg = ( "First argument is not valid HTML:\n" - "('Unexpected end tag `div` (Line 1, Column 6)', (1, 6))" + "('Unexpected end tag `div` (Line 1, Column 0)', (1, 0))" ) with self.assertRaisesMessage(AssertionError, error_msg): - self.assertHTMLEqual("< div></ div>", "<div></div>") + self.assertHTMLEqual("</div>", "<div></div>") with self.assertRaises(HTMLParseError): parse_html("</p>") diff --git a/tests/utils_tests/test_html.py b/tests/utils_tests/test_html.py index 4ce552e79a0d..205eaeca1668 100644 --- a/tests/utils_tests/test_html.py +++ b/tests/utils_tests/test_html.py @@ -142,10 +142,10 @@ def test_strip_tags(self): ("&gotcha&#;<>", "&gotcha&#;<>"), ("<sc<!-- -->ript>test<<!-- -->/script>", "ript>test"), ("<script>alert()</script>&h", "alert()h"), - ("><!" + ("&" * 16000) + "D", "><!" + ("&" * 16000) + "D"), + ("><!" + ("&" * 16000) + "D", ">"), ("X<<<<br>br>br>br>X", "XX"), ("<" * 50 + "a>" * 50, ""), - (">" + "<a" * 500 + "a", ">" + "<a" * 500 + "a"), + (">" + "<a" * 500 + "a", ">"), ("<a" * 49 + "a" * 951, "<a" * 49 + "a" * 951), ("<" + "a" * 1_002, "<" + "a" * 1_002), )