Getting pytest to display output, even if the test case passes; sorting tuples by datetime Frequently, I find myself needing to watch print statements during development as pytest calls new methods. Today I learned how to force passing tests to write to the screen. The -rP option is the answer to that. I'm constantly impressed with how much pytest just already has implemented. Along the vein of 'wow, it just works', I was surprised to find how easy it was to sort tuples by date . On a side note, the StackOverflow question linked to in the previous sentence closed as a duplicate, and I don't think it should have been. I mean sure, there was a more general question that could be construed to be the answer if you already knew lots of Python, but that's kind of beside the point I think. If I knew enough python to make the construction, I probably wouldn't have asked the question . I mean I didn't ask that actual question, but you get the idea.