Duplicate tmpdir fixtures causes --fixtures sorting logic to fail
martinpelikan opened this issue · 5 comments
It looks like something (recent) in pytest-splinter is creating a duplicate tmpdir
fixture, and causes py.test --fixtures
to fail when trying to sort the available fixtures.
I can't tell if this is due to something unique/incorrect in pytest-splinter
, or if pytest
itself should be made more robust.
Please see the details I filed in: pytest-dev/pytest#1651.
https://github.com/pytest-dev/pytest-splinter/blob/master/pytest_splinter/plugin.py#L20 triggers this issue
importation of fixtures is always a bad idea
@RonnyPfannschmidt
cool, but what exactly is the proposed solution then?
@bubenkoff in that particular case for now use the tmpdir factory for pytest 3.1 we have a invocation scoped tmpdir fixture planned
@martinpelikan please check with 1.7.4 which is just out
@bubenkoff Confirmed working on 1.7.4, thanks!