#24258: ModelAdmin.message_user logs out test client on Python 3.2
-----------------------------------------+------------------------
               Reporter:  aaugustin      |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  contrib.admin  |        Version:  master
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 I'm attaching a test case that fails on Python 3.2 and passes on other
 Python versions. The patch is against the stable/1.8.x branch but should
 work on master and 1.7.x too.

 Failure happens because the test client is redirected to the login page.
 Commenting out the line with `self.message_user` makes the test pass on
 all versions.

 I haven't tested if this affects actual users or just the test client. I
 discovered this problem when testing a pluggable application with tox on
 versions of Python and Django I don't use myself.

 Yes, it's obscure.

--
Ticket URL: <https://code.djangoproject.com/ticket/24258>
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/052.ed9e6a73f39e4bee2673f098b63bafb3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to