MCPcopy Index your code
hub / github.com/python/cpython / _run_test

Method _run_test

Lib/test/test_unittest/test_result.py:614–621  ·  view source on GitHub ↗
(self, test_name, verbosity, tearDownError=None)

Source from the content-addressed store, hash-verified

612 raise self.tearDownError
613
614 def _run_test(self, test_name, verbosity, tearDownError=None):
615 stream = BufferedWriter()
616 stream = unittest.runner._WritelnDecorator(stream)
617 result = unittest.TextTestResult(stream, True, verbosity)
618 test = self.Test(test_name)
619 test.tearDownError = tearDownError
620 test.run(result)
621 return stream.getvalue()
622
623 def testDotsOutput(self):
624 self.assertEqual(self._run_test('testSuccess', 1), '.')

Calls 3

getvalueMethod · 0.95
BufferedWriterClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected