#35666: Test stack level of deprecation warnings
-------------------------------------+-------------------------------------
Reporter: Simon Charette | Owner: Simon
Type: | Charette
Cleanup/optimization | Status: closed
Component: Testing framework | Version: 5.1
Severity: Release blocker | Resolution: fixed
Keywords: | 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 Natalia <124304+nessita@…>):
In [changeset:"9a461cae3e5536cbacafa53dbd290ff68df22e67" 9a461cae]:
{{{#!CommitTicketReference repository=""
revision="9a461cae3e5536cbacafa53dbd290ff68df22e67"
[5.1.x] Fixed #35666 -- Documented stacklevel usage and testing, and
adjusted test suite accordingly.
Over the years we've had multiple instances of hit and misses when
emitting warnings: either setting the wrong stacklevel or not setting
it at all.
This work adds assertions for the existing warnings that were declaring
the correct stacklevel, but were lacking tests for it.
Backport of 57307bbc7d88927989cf5b314f16d6e13ade04e6 from main.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/35666#comment:9>
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/0107019199755224-9337be46-47e3-4c44-abcb-f421b5a34e85-000000%40eu-central-1.amazonses.com.