Opened 7 years ago

Last modified 6 weeks ago

#28452 new New feature

Consider adding a test command argument --locals to show traceback locals — at Initial Version

Reported by: David Sanders Owned by: nobody
Component: Testing framework Version: dev
Severity: Normal Keywords:
Cc: Ülgen Sarıkavak Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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.

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top