MCPcopy Create free account
hub / github.com/ipython/ipython / count_failures

Function count_failures

IPython/testing/ipunittest.py:47–52  ·  view source on GitHub ↗

Count number of failures in a doctest runner. Code modeled after the summarize() method in doctest.

(runner)

Source from the content-addressed store, hash-verified

45#-----------------------------------------------------------------------------
46
47def count_failures(runner):
48 """Count number of failures in a doctest runner.
49
50 Code modeled after the summarize() method in doctest.
51 """
52 return [TestResults(f, t) for f, t in runner._name2ft.values() if f > 0 ]
53
54
55class IPython2PythonConverter(object):

Callers 1

testMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected