Michael Selik <m...@selik.org> added the comment: You're referring to something like this:
+ def test_count_and_summary(self): + name = TESTFN + '.py' + with open(name, 'w') as fd: + self.addCleanup(unlink, name) + fd.write("""\ +x = 1 +y = 2 + +def f(): + return x + y + +for i in range(10): + f() + """) + status, stdout, stderr = assert_python_ok('-m', 'trace', '-cs', name) + self.assertEqual(status, 0) + self.assertIn(b'lines cov% module (path)', stdout) + self.assertIn(('6 100%% %s (%s)' % (TESTFN, name)).encode(), stdout) + ? ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31908> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com