(self)
| 392 | self.assertIn("unittest.case.cover", files) |
| 393 | |
| 394 | def test_coverage_ignore(self): |
| 395 | # Ignore all files, nothing should be traced nor printed |
| 396 | libpath = os.path.normpath(os.path.dirname(os.path.dirname(__file__))) |
| 397 | # sys.prefix does not work when running from a checkout |
| 398 | tracer = trace.Trace(ignoredirs=[sys.base_prefix, sys.base_exec_prefix, |
| 399 | libpath] + sys.path, trace=0, count=1) |
| 400 | with captured_stdout() as stdout: |
| 401 | self._coverage(tracer) |
| 402 | if os.path.exists(TESTFN): |
| 403 | files = os.listdir(TESTFN) |
| 404 | self.assertEqual(files, ['_importlib.cover']) # Ignore __import__ |
| 405 | |
| 406 | def test_issue9936(self): |
| 407 | tracer = trace.Trace(trace=0, count=1) |
nothing calls this directly
no test coverage detected