#28452: Consider adding a test command argument --locals to show traceback
locals
---------------------------------------------+------------------------
Reporter: David Sanders | Owner: nobody
Type: New feature | Status: new
Component: Testing framework | Version: 1.11
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
---------------------------------------------+------------------------
I'd like to suggest adding an argument to the test command, `--locals`,
that simply passes `tb_locals=True` to `unittest.TextTestRunner()`.
Currently it looks as though support for adding custom test runner kwargs
was improved in 1.11 with ticket #26981 whereby one can provide a custom
test runner and override `get_test_runner_kwargs()` however I think it
would be nice to be able to examine locals without having to setup a
custom test runner.
--
Ticket URL: <https://code.djangoproject.com/ticket/28452>
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 post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/051.ee0bfeede24b8f6ea1ad77325c252a5a%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.