2024-04-28 16:46:55 -07:00

284 B

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.