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

Method report_start

Lib/doctest.py:1311–1322  ·  view source on GitHub ↗

Report that the test runner is about to process the given example. (Only displays a message if verbose=True)

(self, out, test, example)

Source from the content-addressed store, hash-verified

1309 """
1310
1311 def report_start(self, out, test, example):
1312 """
1313 Report that the test runner is about to process the given
1314 example. (Only displays a message if verbose=True)
1315 """
1316 if self._verbose:
1317 if example.want:
1318 out('Trying:\n' + _indent(example.source) +
1319 'Expecting:\n' + _indent(example.want))
1320 else:
1321 out('Trying:\n' + _indent(example.source) +
1322 'Expecting nothing\n')
1323
1324 def report_success(self, out, test, example, got):
1325 """

Callers 1

__runMethod · 0.95

Calls 1

_indentFunction · 0.85

Tested by

no test coverage detected