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

4 lines
284 B
Markdown

Demonstration of the use of "conditional cleanups" in `pytest`, as explored further in [this blog post](https://blog.scubbo.org/posts/conditional-cleanups-in-pytest).
Run `pytest`, and observe that the tempfile is cleaned up for the passing test, but persisted for the failing test.