{ } Raw JSON

bundles / papyri latest / papyri / gen / PapyriDocTestRunner / _compact

function

papyri.gen:PapyriDocTestRunner._compact

source: /papyri/gen.py :724

Signature

def   _compact ( self example_section_data : Section )  →  Section

Summary

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