diff options
Diffstat (limited to 'meta-python/recipes-devtools/python/python3-django/0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch')
| -rw-r--r-- | meta-python/recipes-devtools/python/python3-django/0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-django/0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch b/meta-python/recipes-devtools/python/python3-django/0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch new file mode 100644 index 0000000000..a84a118bcb --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-django/0001-Fixed-test_utils.tests.HTMLEqualTests.test_parsing_e.patch | |||
| @@ -0,0 +1,32 @@ | |||
| 1 | From 744927154e6748db08f5232de78ee0d4a8be61a5 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 3 | Date: Mon, 21 Jul 2025 15:23:32 -0300 | ||
| 4 | Subject: [PATCH] Fixed test_utils.tests.HTMLEqualTests.test_parsing_errors | ||
| 5 | following Python's HTMLParser fixed parsing. | ||
| 6 | |||
| 7 | From: Natalia <124304+nessita@users.noreply.github.com> | ||
| 8 | |||
| 9 | Further details about Python changes can be found in: | ||
| 10 | https://github.com/python/cpython/commit/0243f97cbadec8d985e63b1daec5d1cbc850cae3. | ||
| 11 | |||
| 12 | Thank you Clifford Gama for the thorough review! | ||
| 13 | |||
| 14 | Upstream-Status: Backport [https://github.com/django/django/commit/e4515dad7a6d953c0bd2414127ba36e1446ff41a] | ||
| 15 | Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> | ||
| 16 | --- | ||
| 17 | tests/test_utils/tests.py | 2 +- | ||
| 18 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 19 | |||
| 20 | diff --git a/tests/test_utils/tests.py b/tests/test_utils/tests.py | ||
| 21 | index a1a113a..d1a1e35 100644 | ||
| 22 | --- a/tests/test_utils/tests.py | ||
| 23 | +++ b/tests/test_utils/tests.py | ||
| 24 | @@ -736,7 +736,7 @@ class HTMLEqualTests(SimpleTestCase): | ||
| 25 | "('Unexpected end tag `div` (Line 1, Column 6)', (1, 6))" | ||
| 26 | ) | ||
| 27 | with self.assertRaisesMessage(AssertionError, error_msg): | ||
| 28 | - self.assertHTMLEqual('< div></ div>', '<div></div>') | ||
| 29 | + self.assertHTMLEqual('< div></div>', '<div></div>') | ||
| 30 | with self.assertRaises(HTMLParseError): | ||
| 31 | parse_html('</p>') | ||
| 32 | |||
