#32557: Fail tests when unraisable exceptions occur
-----------------------------------+------------------------------------
     Reporter:  Adam Johnson       |                    Owner:  nobody
         Type:  New feature        |                   Status:  new
    Component:  Testing framework  |                  Version:  dev
     Severity:  Normal             |               Resolution:
     Keywords:                     |             Triage Stage:  Accepted
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+------------------------------------

Comment (by Chris Jerdonek):

 One comment: the `sys.unraisablehook` docs say:

 > Called when an exception has occurred but there is no way for Python to
 handle it. For example, when a destructor raises an exception or during
 garbage collection (`gc.collect()`).

 Thus, with this patch, if we disable garbage collection as in this PR:
 https://github.com/django/django/pull/14142
 then it seems like we won't get the benefit of this patch in checking for
 exceptions that occur during garbage collection.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/32557#comment:4>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/068.32c740eae6bc20930a61bf4615d4f3e6%40djangoproject.com.

Reply via email to