#21665 closed Cleanup/optimization (fixed)
assertRedirects should treat equivalent URLs differing only in URL-escaping as equal
Reported by: | pdc | Owned by: | nobody |
---|---|---|---|
Component: | Documentation | Version: | 1.6 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
After upgrading to Django 1.6 I get this error message while testing:
AssertionError: Response redirected to 'http://testserver/front%3Bskip%3D47', expected 'http://testserver/front;skip=47'
Given that these both represent the same URL – don’t they? – I would have expected the assertRedirects predicate to be satisfied.
Change History (5)
comment:1 by , 11 years ago
Component: | Uncategorized → Testing framework |
---|
comment:3 by , 11 years ago
Component: | Testing framework → Documentation |
---|---|
Triage Stage: | Unreviewed → Accepted |
Type: | Bug → Cleanup/optimization |
This particular consequence could be mentioned in the release notes but I think the code is now mostly correct.
comment:4 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
What version did you upgrade from? If you could identify the commit where the behavior changed, that will help us determine if this was an intentional change or a regression that should be fixed.