MCPcopy Index your code
hub / github.com/RustPython/RustPython / __record_outcome

Method __record_outcome

Lib/doctest.py:1485–1496  ·  view source on GitHub ↗

Record the fact that the given DocTest (`test`) generated `failures` failures out of `tries` tried examples.

(self, test, failures, tries, skips)

Source from the content-addressed store, hash-verified

1483 return TestResults(failures, attempted, skipped=skips)
1484
1485 def __record_outcome(self, test, failures, tries, skips):
1486 """
1487 Record the fact that the given DocTest (`test`) generated `failures`
1488 failures out of `tries` tried examples.
1489 """
1490 failures2, tries2, skips2 = self._stats.get(test.name, (0, 0, 0))
1491 self._stats[test.name] = (failures + failures2,
1492 tries + tries2,
1493 skips + skips2)
1494 self.failures += failures
1495 self.tries += tries
1496 self.skips += skips
1497
1498 __LINECACHE_FILENAME_RE = re.compile(r'<doctest '
1499 r'(?P<name>.+)'

Callers 1

__runMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected