1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #32556 -- Fixed handling empty string as non-boolean attributes value by assertHTMLEqual().

This commit is contained in:
Baptiste Mispelon
2021-03-19 00:43:38 +01:00
committed by Mariusz Felisiak
parent 98abf80cde
commit 41e6b2a3c5
4 changed files with 49 additions and 11 deletions

View File

@@ -362,6 +362,10 @@ Miscellaneous
``EmailMessage.attach()`` with an invalid ``content`` or ``mimetype``
arguments now raise ``ValueError`` instead of ``AssertionError``.
* :meth:`~django.test.SimpleTestCase.assertHTMLEqual` no longer considers a
non-boolean attribute without a value equal to an attribute with the same
name and value.
.. _deprecated-features-4.0:
Features deprecated in 4.0