Opened 8 years ago
Last modified 12 months ago
#28452 new New feature
Consider adding a test command argument --locals to show traceback locals — at Initial Version
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.
According to the ticket's flags, the next step(s) to move this issue forward are:
Unknown. The Someday/Maybe triage stage is used to keep track of high-level ideas or long term feature requests.
It could be an issue that's blocked until a future version of Django (if so, Keywords will contain that version number). It could also be an enhancement request that we might consider adding someday to the framework if an excellent patch is submitted.
If you're interested in contributing to the issue, raising your ideas on the Django Forum would be a great place to start.