Is it possible to assert that tests run using pytest do not output anything from Python or C stdout? Ideally this would be global, along with a few manually-annotated exclusions.
I've read the pytest capturing docs and could use that system within each test, but am hoping to avoid passing the capture fixture everywhere, along with modifying all tests.
(running doctests implicitly checks this, because it checks output against expectation for each example line, but I want to error on any unexpected output from unit tests)