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

Method merge

Lib/doctest.py:1697–1705  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

1695 # Backward compatibility cruft to maintain doctest.master.
1696 #/////////////////////////////////////////////////////////////////
1697 def merge(self, other):
1698 d = self._stats
1699 for name, (failures, tries, skips) in other._stats.items():
1700 if name in d:
1701 failures2, tries2, skips2 = d[name]
1702 failures = failures + failures2
1703 tries = tries + tries2
1704 skips = skips + skips2
1705 d[name] = (failures, tries, skips)
1706
1707
1708def _n_items(items: list | dict) -> str:

Callers 2

testmodFunction · 0.45
testfileFunction · 0.45

Calls 1

itemsMethod · 0.45

Tested by

no test coverage detected