I have a pytest class that looks as following:
class TestModule:
def test_print(self):
print("test")
This test only passes without printing anything.
def test_print(self):
print("test")
quit()
This prints test and then raises. Is there a reason for that? How can you print to stdout in pytest?