diff options
author | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-01-20 12:15:19 +0100 |
---|---|---|
committer | Adrien Di Mascio <Adrien.DiMascio@logilab.fr> | 2009-01-20 12:15:19 +0100 |
commit | dc6259f64afbc48dfcbda9671116594f47454711 (patch) | |
tree | 54cdb4c00fad00c76c46df09377fd8930c592483 /pytest.py | |
parent | a243379ca0bdabeb2d440d64496469839c01a07b (diff) | |
download | logilab-common-dc6259f64afbc48dfcbda9671116594f47454711.tar.gz |
disable auto-colorizing (useless and even bad in most cases)
reimplement source colorization :
- use --color if you want your traceback to be colorized
- ipython is used (as in debugger.py) rather than pygments directly
- only python source lines are passed to the colorizer (not all the
formatted traeceback)
- the filenames are also colorized
This patch also provides a new feature: when --verbose is used,
local variables are displayed.
Diffstat (limited to 'pytest.py')
-rw-r--r-- | pytest.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -592,6 +592,9 @@ def make_parser(): action="callback", help="Captures and prints standard out/err only on errors " "(only make sense when pytest run one test file)") + parser.add_option('--color', callback=rebuild_cmdline, + action="callback", + help="colorize tracebacks") parser.add_option('-p', '--printonly', # XXX: I wish I could use the callback action but it # doesn't seem to be able to get the value |