Capture the outcome of Python function calls
Capture the outcome of Python function calls. Extracted from the Trio project.
Make sure tests are only run when requested