bundles / papyri 0.0.10 / papyri / gen / PapyriDocTestRunner / _compact
function
papyri.gen:PapyriDocTestRunner._compact
source: /papyri/gen.py:753
Signature
def _compact(self, example_section_data: Section) → SectionSummary
Compact consecutive execution items that do have the same execution status.
Extended Summary
TODO:
This is not perfect as doctest tests that the output is the same, thus when we have a multiline block If any of the intermediate items produce an output, the result will be failure.
Aliases
papyri.gen.PapyriDocTestRunner._compact