Minor commentary: I remember the PR where @mfalesni introduced this idea as a fixture instead of a yield fixture because, as the docstring says, this "is much more reliable". I would hope that fixture + finalizer is just as reliable as a yield fixture, and I'm curious of the reliability issue referred to there isn't being caused by my other comment on this line.

What do you think, Milan?