python3-django: (v3.2.25) fix tests

These patches are for python3-django_3.2.25

These patches only touch the tests folder, which is normally not installed.

Most of these changes are backported patches, that adapt tests to modern(er)
Python environment than they were written for, and some other just fix a bug
in the tests that were always present.

0001-Fix-tag_strip-tests.patch: The html parser's behavior in Python has changed,
making this testcase fail. This is a partial backport of the patch, which handles
only the Python version that is shipped with oe-core (The original patch handles
both old and new versions)

0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch: this backported
patch makes a test-verification conform to html5 standard. Previously the test failed.

Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
This commit is contained in:
Gyorgy Sarvari
2026-01-15 13:24:35 +01:00
parent 08466c714f
commit c8b4a0b775
3 changed files with 71 additions and 0 deletions
@@ -16,6 +16,8 @@ SRC_URI += "\
file://CVE-2024-53907.patch \
file://CVE-2025-32873.patch \
file://0001-Fixed-33367-Fixed-URLValidator-crash-in-some-edge-ca.patch \
file://0001-Fix-tag_strip-tests.patch \
file://0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch \
"
# Set DEFAULT_PREFERENCE so that the LTS version of django is built by