Demonstration of the use of "conditional cleanups" in pytest
, as explored further in this blog post.
Run pytest
, and observe that the tempfile is cleaned up for the passing test, but persisted for the failing test.
Description
Languages
Python
100%