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)
Change History (3)
by , 10 years ago
Attachment: | 24258-testcase.diff added |
---|
comment:1 by , 10 years ago
comment:2 by , 10 years ago
Resolution: | → wontfix |
---|---|
Status: | new → closed |
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.
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?