#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:"2b3093ff431de73cd23023110ccd86f310d3d29d" 2b3093f]:
{{{#!CommitTicketReference repository=""
revision="2b3093ff431de73cd23023110ccd86f310d3d29d"
[5.2.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:12>
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/0107019eb34274a5-ce7373b0-490c-4664-b480-5758de53a913-000000%40eu-central-1.amazonses.com.