#29187: test_delete_signals occasionally fails when running all django tests
-------------------------------------+-------------------------------------
     Reporter:  Jacob Mulford        |                    Owner:  Jacob
                                     |  Walls
         Type:  Bug                  |                   Status:  closed
    Component:  Core (Other)         |                  Version:  2.0
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  tests, unit tests    |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Comment (by Jacob Walls <jacobtylerwalls@…>):

 In [changeset:"fab4fa94599c6a8dabf4f63a7dca89edab11265d" fab4fa94]:
 {{{#!CommitTicketReference repository=""
 revision="fab4fa94599c6a8dabf4f63a7dca89edab11265d"
 [6.0.x] Fixed #29187 -- Fixed flaky receiver count assertion in signals
 tests.

 Signal.receivers prunes dead weak references lazily, so a weak receiver
 garbage-collected elsewhere could still occupy a slot when
 BaseSignalSetup.setUp() counted receivers. The test's own
 connect/send/disconnect calls would then prune before tearDown()
 counted again.

 Backport of 15bcbeeb95ca34385c119acea14df1f5e7274d45 from main.
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/29187#comment:11>
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 visit 
https://groups.google.com/d/msgid/django-updates/0107019eb34133c9-47e06f46-b346-4782-985e-2c2f71da09e9-000000%40eu-central-1.amazonses.com.

Reply via email to