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

Method from_unittest

Lib/test/libregrtest/result.py:18–21  ·  view source on GitHub ↗
(result)

Source from the content-addressed store, hash-verified

16
17 @staticmethod
18 def from_unittest(result):
19 return TestStats(result.testsRun,
20 len(result.failures),
21 len(result.skipped))
22
23 @staticmethod
24 def from_doctest(results):

Callers 2

_run_suiteFunction · 0.80
regrtest_runnerFunction · 0.80

Calls 1

TestStatsClass · 0.85

Tested by

no test coverage detected