MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / report_start

Method report_start

tools/python-3.11.9-amd64/Lib/doctest.py:1243–1254  ·  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

1241 #/////////////////////////////////////////////////////////////////
1242
1243 def report_start(self, out, test, example):
1244 """
1245 Report that the test runner is about to process the given
1246 example. (Only displays a message if verbose=True)
1247 """
1248 if self._verbose:
1249 if example.want:
1250 out('Trying:\n' + _indent(example.source) +
1251 'Expecting:\n' + _indent(example.want))
1252 else:
1253 out('Trying:\n' + _indent(example.source) +
1254 'Expecting nothing\n')
1255
1256 def report_success(self, out, test, example, got):
1257 """

Callers 1

__runMethod · 0.95

Calls 1

_indentFunction · 0.85

Tested by

no test coverage detected