Opened 12 years ago
Closed 12 years ago
#18980 closed Bug (fixed)
master .assertContains after d1452f60 should still coerce objects to text.
Reported by: | Jeremy Dunck | Owned by: | nobody |
---|---|---|---|
Component: | Testing framework | Version: | 1.4 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In [1], smart_str(text) was removed, but probably shouldn't have been.
Let's put back the py3 analog, force_text.
[1] https://github.com/django/django/commit/d1452f60974da6f0e54ff9ad7a03d2c115675d10
Change History (4)
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Here's a pull request w/ fix and tests. Sorry for the delay - I had the branch ready to go but lost internet connection just after filing the ticket but just before making the pull request.
comment:3 by , 12 years ago
Has patch: | set |
---|
comment:4 by , 12 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Any failure scenario at hand?