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

Method _subTest

Lib/doctest.py:2315–2318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2313 self._examplenum = 0
2314
2315 def _subTest(self):
2316 subtest = unittest.case._SubTest(self._test_case, str(self._examplenum), {})
2317 self._examplenum += 1
2318 return subtest
2319
2320 def report_skip(self, out, test, example):
2321 unittest.case._addSkip(self._test_result, self._subTest(), '')

Callers 4

report_skipMethod · 0.95
report_successMethod · 0.95
report_failureMethod · 0.95

Calls 1

strFunction · 0.85

Tested by

no test coverage detected