Von: "Leah Klearman" <[email protected]>
An: "Bob Silverberg" <[email protected]>, pytest-dev <[email protected]>
Betreff: Re: [pytest-dev] [pytest-rerunfailures] pytest-rerunfailures not using fixtures on reruns (#10)
I just verified this behaviour myself with a simple test [1]. I see it with both funcargs and fixtures, but I'm not sure if it has to do with the plugin, or the way py.test works. It does inject the value into the test method, but it doesn't rerun the fixture, so it seems like it is caching the first run of the fixture and using that on subsequent runs.
I'm not sure if this is something that the plugin can have any effect on, or if it's just the way fixtures work. It is specified for this fixture that it is
scope='function', and perhaps py.test makes that happen by checking the function name, which is, of course, the same for each run. I did try removing the scope argument from the fixture but that had no effect.Do you have any thoughts about this, @klrmn?
[1] https://gist.github.com/bobsilverberg/5385035
—
Reply to this email directly or view it on GitHub.
_______________________________________________ Pytest-dev mailing list [email protected] http://mail.python.org/mailman/listinfo/pytest-dev
