Sometimes I want to just insert some print statements in my code, and see what gets printed out when I exercise it. My usual way to \"exercise\" it is with existing pytest t
pytest --capture=tee-sys was recently added (v5.4.0). You can capture as well as see the output on stdout/err.
pytest --capture=tee-sys