#17173: Add a unit test for reverse('namespace:name') -> URL with special regexp
chars.
-------------------------------+--------------------
Reporter: kaiser.yann@… | Owner: nobody
Type: New feature | Status: new
Component: Uncategorized | Version: SVN
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 1
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The last test in this patch fails on 1.3.1 but works on HEAD, and I
noticed no other test for it.
Summary of the failure (1.3.1):
If the left part of an include contains special chars in regard to re,
using the namespace:name form of reverse() will return a URL with the
escape characters left in.
AssertionError: '/+%5C$*/included/normal/' !=
'/%5C+%5C%5C%5C$%5C*/included/normal/'
Attached are two patches: one for SVN HEAD, the other for 1.3.1, if you
want to reproduce the failure.
--
Ticket URL: <https://code.djangoproject.com/ticket/17173>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.