Recursive parameterized fixture bug #6416
Labels
topic: fixtures
anything involving fixtures directly or indirectly
type: bug
problem that needs to be addressed
Description
When overriding session scoped fixtures with a parameterized fixture that is used as the input to another fixture the recursive fixture is not properly invoked.
I have created a minimal reproduction here with more information: https://github.com/baszalmstra/pytest_fixture_bug
Minimal example
Given the files:
conftest.py
test_bar.py
test_foo.py
Calling
pytest
fails with:Which should not be possible.
We have observed this issue with both pytest-4.6.9 as well as with pytest-5.3.2 on Ubuntu 18.04. We are still on python 2.7 so a backported solution to pytest 4 would be desirable.
This seems to be related to: #5693
The text was updated successfully, but these errors were encountered: