August 2018
Beginner
160 pages
4h 8m
English
Finally, while this is not a traceback mode flag specifically, --showlocals (or -l as shortcut) augments the traceback modes by showing a list of the local variables and their values when using --tb=auto, --tb=long, and --tb=short modes.
For example, here's the output of --tb=auto and --showlocals:
_______________________ test_read_properties ________________________ def test_read_properties(): lines = DATA.strip().splitlines()> grids = list(iter_grids_from_csv(lines))lines = ['Main Grid,48,44', '2nd Grid,24,21', '3rd Grid,24,null']tests\test_read_properties.py:32:_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _tests\test_read_properties.py:27: in iter_grids_from_csv yield parse_grid_data(fields)tests\test_read_properties.py:21: ...
Read now
Unlock full access