Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_suite
Function · 0.80
regrtest_runner
Function · 0.80
Calls
1
TestStats
Class · 0.85
Tested by
no test coverage detected