#29238: psycopg2.InterfaceError in sequential tests after HTTP 404
-----------------------------------+--------------------------------------
Reporter: alubbock | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: 1.11
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Comment (by Tim Graham):
The issue doesn't occur until Django 1.10, after
5233b70070f8979f41ca1da2c1b1d78c8e30944e.
Your `handler404` has a mistake where it passes the result of
`django.shortcuts.render()` (which returns an `HttpResponse`) to
`HttpResponseNotFound`. I'm surprised this works at all. The exception
will be fixed if you change the handler to `return
HttpResponseNotFound(render(request, 'error404.html').content)`.
I'm not sure if Django should try to detect this mistake.
--
Ticket URL: <https://code.djangoproject.com/ticket/29238#comment:5>
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/066.4495c0b451a038db504b9bf64d260534%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.