O'Reilly logo
  • Chris Kang thinks this is interesting:

with​ capsys.disabled():

From

Cover of Python Testing with pytest

Note

This "with" statement allows all strings to be sent to stdout even if "capsys" fixture is used.