#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: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by David Sanders):
* version: 1.11 => master
Old description:
> 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.
New description:
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.
Please note that the `tb_locals` argument was introduced in Python 3.5, so
this would need to be taken into consideration.
--
--
Ticket URL: <https://code.djangoproject.com/ticket/28452#comment:1>
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/066.769f78aa44503fbb82cfedfcb2239562%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.