#16997: some contrib.session tests fail in Python3
----------------------------+----------------------
Reporter: adsworth | Owner: adsworth
Type: Bug | Status: new
Component: Python 3 | Version: 1.3
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+----------------------
The attached patch fixes contrib.sessions so that all tests pass.
I've had to modify 2 tests. In Python 3 `dict.values` returns a
`dict_values` view instead of a `list`. See
http://docs.python.org/whatsnew/2.7.html#pep-3106-dictionary-views . So
comparing dict.values() with [] will always fail. Wrapping dict.values()
in a list call works as expected and has no side effects in py2.x
--
Ticket URL: <https://code.djangoproject.com/ticket/16997>
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.