[PATCH v2 1/2] [PW3] tests: Fix escaping in bundle tests on Django 3.0

Stephen Finucane stephen at that.guru
Thu Apr 9 08:37:54 AEST 2020


On Thu, 2019-10-24 at 14:26 +1100, Andrew Donnellan wrote:
> Django 3.0 switches to using Python 3's built-in HTML escaper, which
> prefers to escape entities using hex rather than decimal.
> 
> Some of our tests check rendered HTML output against pre-escaped strings,
> and fail because ''' is now '''.
> 
> Fix this by using the escape function so we get consistent escaping no
> matter which Django version..
> 
> Signed-off-by: Andrew Donnellan <ajd at linux.ibm.com>

Applied both of these. Thanks!

Stephen



More information about the Patchwork mailing list