From 6bb0ee953d4cba9a04624dba7a5e164ba523a048 Mon Sep 17 00:00:00 2001
From: Stefan Behnel <stefan_ml@behnel.de>
Date: Sun, 26 Aug 2018 13:24:33 +0200
Subject: [PATCH] Fix some stats issues in the test runner.

---
 runtests.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/runtests.py b/runtests.py
index 998ba36b2..1d98d2e73 100755
--- a/runtests.py
+++ b/runtests.py
@@ -581,9 +581,10 @@ class Stats(object):
         self.add_time(metric, t)
 
     def print_stats(self, out=sys.stderr):
-        lines = ['Times:']
+        lines = ['Times:\n']
         for metric, t in sorted(self.test_times.items()):
-            lines.append("%-12s: %5.2f sec  (%.3f / run)\n" % (metric, t, t / self.test_counts[metric]))
+            count = self.test_counts[metric]
+            lines.append("%-12s: %8.2f sec  (%d, %.3f / run)\n" % (metric, t, count, t / count))
         out.write(''.join(lines))
 
 
@@ -1746,9 +1747,8 @@ class EmbedTest(unittest.TestCase):
         if sys.version_info[0] >=3 and CY3_DIR:
             cython = os.path.join(CY3_DIR, cython)
         cython = os.path.abspath(os.path.join('..', '..', cython))
-        with self.stats.time('embed'):
-            self.assertTrue(os.system(
-                "make PYTHON='%s' CYTHON='%s' LIBDIR1='%s' test > make.output" % (sys.executable, cython, libdir)) == 0)
+        self.assertEqual(0, os.system(
+            "make PYTHON='%s' CYTHON='%s' LIBDIR1='%s' test > make.output" % (sys.executable, cython, libdir)))
         try:
             os.remove('make.output')
         except OSError:
-- 
2.30.9