[pytest-dev] solving the "too static" fixture scope problem

Bruno Oliveira nicoddemus at gmail.com
Fri Oct 11 13:25:32 CEST 2013


On Fri, Oct 11, 2013 at 8:14 AM, Vladimir Keleshev <vladimir at keleshev.com>wrote:

> > If you refer to tmpdir/monkeypatch and potentially others, i agree
> > that the current behaviour is more surprising (sharing the tmpdir
> > across multiple fixtures which don't even neccessarily know about each
> > other).
>
> Absolutely. Was a major WAT for me.
>

Weird, to me it was the exact opposite about tmpdir: it is a common usage
in our code base to create a temporary directory for usage through a test
suite (usually a module containing related tests). And different fixtures
sharing tmpdir makes sense in this scenario.

Cheers,
Bruno.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pytest-dev/attachments/20131011/1b7babd0/attachment.html>


More information about the Pytest-dev mailing list