MCPcopy Index your code
hub / github.com/RustPython/RustPython / _run_test

Method _run_test

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

Source from the content-addressed store, hash-verified

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

Calls 3

getvalueMethod · 0.95
BufferedWriterClass · 0.90
runMethod · 0.45

Tested by

no test coverage detected