From 5f860181b60bcdef6cf54713d0c0c89caa5e11d4 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Mon, 28 Sep 2015 18:25:20 -0300 Subject: [PATCH] Remove print left by accident --- _pytest/helpconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/helpconfig.py b/_pytest/helpconfig.py index 5ede8b371..b445dcfc3 100644 --- a/_pytest/helpconfig.py +++ b/_pytest/helpconfig.py @@ -86,7 +86,7 @@ def showhelp(config): tw.line("to see available fixtures type: py.test --fixtures") tw.line("(shown according to specified file_or_dir or current dir " "if not specified)") - tw.line(str(reporter.stats)) + for warningreport in reporter.stats.get('warnings', []): tw.line("warning : " + warningreport.message, red=True) return