Author selik
Recipients Michael Selik, belopolsky, berker.peksag, rhettinger, selik
Date 2017-11-13.22:43:51
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1510613031.91.0.213398074469.issue31908@psf.upfronthosting.co.za>
In-reply-to
Content
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)
+

?
History
Date User Action Args
2017-11-13 22:43:51seliksetrecipients: + selik, rhettinger, belopolsky, berker.peksag, Michael Selik
2017-11-13 22:43:51seliksetmessageid: <1510613031.91.0.213398074469.issue31908@psf.upfronthosting.co.za>
2017-11-13 22:43:51seliklinkissue31908 messages
2017-11-13 22:43:51selikcreate