From 7993afae4611fcd3e1add0ee96b64fa00c16b5b8 Mon Sep 17 00:00:00 2001 From: Eric Siegerman Date: Tue, 30 Jun 2015 18:48:49 -0400 Subject: [PATCH] test_summary_stats() now prints its parameter values This makes it easier to identify failing tests. --- testing/test_terminal.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testing/test_terminal.py b/testing/test_terminal.py index 9390ac153..e1436f7f9 100644 --- a/testing/test_terminal.py +++ b/testing/test_terminal.py @@ -767,7 +767,10 @@ def test_terminal_summary(testdir): "xfailed": (1,2)}), ]) def test_summary_stats(exp_line, exp_color, stats_arg): + print("Based on stats: %s" % stats_arg) + print("Expect summary: \"%s\"; with color \"%s\"" % (exp_line, exp_color)) (line, color) = build_summary_stats_line(stats_arg) + print("Actually got: \"%s\"; with color \"%s\"" % (line, color)) assert line == exp_line assert color == exp_color