--
Ticket URL: <https://code.djangoproject.com/ticket/28837>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* cc: Nicolas Delaby (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:2>
* type: Uncategorized => Bug
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:3>
* cc: Claude Paroz (added)
* stage: Unreviewed => Accepted
Comment:
Regression introduced by 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba (refs
#23919). It looks like there might be other instances that require
adjustments
-
https://github.com/django/django/commit/6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba
#diff-5b0dda5eb9a242c15879dc9cd2121379R501
-
https://github.com/django/django/commit/6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba
#diff-97160f50594424a40f2621d5a3c581ccR496
-
https://github.com/django/django/commit/6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba
#diff-46e69f287173eef41fcbfeba05501954R249
Do you think you could handle these as well? Also it looks like there's a
lot of boilerplate involved to perform the re-reraise. Claude, do you have
a better idea of how these should be handled?
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:4>
Comment (by Simon Charette):
[https://github.com/django/django/pull/9381 PR]
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:5>
Comment (by Nicolas Delaby):
I will look into it. and probably create an helper function.
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:6>
* needs_better_patch: 0 => 1
* easy: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:7>
Comment (by Claude Paroz):
I think we should evaluate if simply replacing `raise
exc_info[0](exc_info[1]).with_traceback(exc_info[2])` by `raise
exc_info[1].with_traceback(exc_info[2])` would make it.
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:8>
* needs_better_patch: 1 => 0
Comment:
I've updated the PR based on the discussion there.
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:9>
* stage: Accepted => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:10>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"746caf3ef821dbf7588797cb2600fa81b9df9d1d" 746caf3e]:
{{{
#!CommitTicketReference repository=""
revision="746caf3ef821dbf7588797cb2600fa81b9df9d1d"
Fixed #28837 -- Fixed test client crash if an exception with more than one
arg is raised.
Also removed usage of the problematic pattern elsewhere.
Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:11>
Comment (by Tim Graham <timograham@…>):
In [changeset:"ae4132a940486c86364bae71b92b7e95d62cc4a7" ae4132a9]:
{{{
#!CommitTicketReference repository=""
revision="ae4132a940486c86364bae71b92b7e95d62cc4a7"
[2.0.x] Fixed #28837 -- Fixed test client crash if an exception with more
than one arg is raised.
Also removed usage of the problematic pattern elsewhere.
Regression in 6e55e1d88a5c4453e25f0caf7ffb68973de5c0ba.
Backport of 746caf3ef821dbf7588797cb2600fa81b9df9d1d from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/28837#comment:12>