Opened 22 months ago

Closed 22 months ago

Last modified 22 months ago

#21185 closed Bug (fixed)

django.utils.text.unescape_entities has no tests

Reported by: bmispelon Owned by: bmispelon
Component: Utilities Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: no UI/UX: no

Description

This was reported by user brutasse on IRC.

Additionally, unescape_entities uses the builtin unichr which doesn't exists under python3 (it should be imported through six).

Change History (3)

comment:1 Changed 22 months ago by Baptiste Mispelon <bmispelon@…>

  • Resolution set to fixed
  • Status changed from new to closed

In 3754f4ad410640382f9fe25073da03009cdc2ea3:

Fix #21185: Added tests for unescape_entities.

Also fixed a py3 incompatibility.
Thanks to brutasse for the report.

comment:2 Changed 22 months ago by Baptiste Mispelon <bmispelon@…>

In 15bdc85117785d583b9ae71d256929a431478f4c:

[1.6.x] Fix #21185: Added tests for unescape_entities.

Also fixed a py3 incompatibility.
Thanks to brutasse for the report.

Backport of 3754f4ad410640382f9fe25073da03009cdc2ea3 from master.

comment:3 Changed 22 months ago by Baptiste Mispelon <bmispelon@…>

In 73ffe26816738c15515e5764e96c056f0d98559a:

[1.5.x] Fix #21185: Added tests for unescape_entities.

Also fixed a py3 incompatibility.
Thanks to brutasse for the report.

Backport of 3754f4ad410640382f9fe25073da03009cdc2ea3 from master.

Note: See TracTickets for help on using tickets.
Back to Top