From 1cb83de0ab52c5b3fd43ac31cc428fad02e0a52f Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 10 May 2009 21:50:24 +0200 Subject: [PATCH] don't print py lib revision always --HG-- branch : trunk --- py/test/plugin/pytest_terminal.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/py/test/plugin/pytest_terminal.py b/py/test/plugin/pytest_terminal.py index c3f8a0e38..f2db75271 100644 --- a/py/test/plugin/pytest_terminal.py +++ b/py/test/plugin/pytest_terminal.py @@ -207,9 +207,10 @@ class TerminalReporter: msg += " -- " + str(sys.executable) self.write_line(msg) - rev = py.__pkg__.getrev() - self.write_line("using py lib: %s " % ( - py.path.local(py.__file__).dirpath(), rev)) + if self.config.option.debug or self.config.option.traceconfig: + rev = py.__pkg__.getrev() + self.write_line("using py lib: %s " % ( + py.path.local(py.__file__).dirpath(), rev)) if self.config.option.traceconfig: plugins = [] for plugin in self.config.pluginmanager.comregistry: