* component: Uncategorized => Testing framework
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* stage: Unreviewed => Accepted
Comment:
HI Jordan. Thanks for the report.
Sounds like it's definitely worth looking at a patch. It would be a nice
improvement if there aren't any issues.
Would you be able to prepare a PR?
Ref also #27301 (and loosely #29023)
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:3>
* type: Uncategorized => Cleanup/optimization
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:7>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:8>
Comment (by Chris Jerdonek):
I took a look at the proposed PR for this issue. I want to mention that
there's another approach to the whole "pickleability" issue. The problem
with the pickling approach is that I don't think it can ever be completely
solved. It seems like there will always be cases that can't be pickled, so
attempts at further fixing will always be partial workarounds.
Another approach is to render the exception to a string when the exception
first happens, and to pass the string back (as strings ''are''
pickleable). This approach is discussed further in #29023, and a proof-of-
concept patch is linked to there. Another advantage of first rendering to
a string is that the full exception chain gets captured, which I don't
think pickling addresses either (last I checked). (Ticket #29023 is about
the exception chain aspect.)
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:9>
* owner: Jordan Ephron => Jonny Arnold
Comment:
I ran into this issue recently and feel I can pick this up following the
comments on the old pull request.
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:10>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:11>
* needs_better_patch: 0 => 1
* needs_tests: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:12>
* needs_better_patch: 1 => 0
* needs_tests: 1 => 0
Comment:
I've responded to the comment on the Pull Request. Please let me know if I
need to make any further changes.
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:13>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:14>
* owner: Jonny Arnold => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:15>
* cc: Sarah Boyce (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:16>
* cc: Sage Abdullah (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:17>
* cc: David Wobrock (added)
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:18>
* owner: (none) => David Wobrock
* needs_better_patch: 1 => 0
* status: new => assigned
Comment:
Here's a new minimal [https://github.com/django/django/pull/17650 PR],
based on previous work.
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:19>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:20>
* needs_better_patch: 1 => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:21>
* needs_better_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/32114#comment:22>