Opened 10 years ago

Closed 10 years ago

#24258 closed Bug (wontfix)

ModelAdmin.message_user logs out test client on Python 3.2

Reported by: Aymeric Augustin Owned by: nobody
Component: contrib.admin Version: dev
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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.

Attachments (1)

24258-testcase.diff (3.8 KB ) - added by Aymeric Augustin 10 years ago.

Download all attachments as: .zip

Change History (3)

by Aymeric Augustin, 10 years ago

Attachment: 24258-testcase.diff added

comment:1 by Tim Graham, 10 years ago

Oh dear, I think this is a symptom of a regression in Python 3.2.6 (vs. 3.2.5); see http://bugs.python.org/issue22758#msg230205. I thought 3.2.7 might have been released to correct that issue by now. Do you think we should document the incompatibility at this point?

comment:2 by Aymeric Augustin, 10 years ago

Resolution: wontfix
Status: newclosed

That makes sense; tests for this app used to pass under Python 3.2, a few months ago.

MacPorts still gives me 3.2.6 at this time. Eventually I'll get 3.2.7.

Note: See TracTickets for help on using tickets.
Back to Top