(self)
| 386 | @unittest.expectedFailure # TODO: RUSTPYTHON; AssertionError: 'pprint.py' not found in '' |
| 387 | @requires_resource('cpu') |
| 388 | def test_coverage(self): |
| 389 | tracer = trace.Trace(trace=0, count=1) |
| 390 | with captured_stdout() as stdout: |
| 391 | self._coverage(tracer) |
| 392 | stdout = stdout.getvalue() |
| 393 | self.assertIn("pprint.py", stdout) |
| 394 | self.assertIn("case.py", stdout) # from unittest |
| 395 | files = os.listdir(TESTFN) |
| 396 | self.assertIn("pprint.cover", files) |
| 397 | self.assertIn("unittest.case.cover", files) |
| 398 | |
| 399 | def test_coverage_ignore(self): |
| 400 | # Ignore all files, nothing should be traced nor printed |
nothing calls this directly
no test coverage detected