diff --git a/testing/test_mark.py b/testing/test_mark.py index bbce30e8d..cd3fde406 100644 --- a/testing/test_mark.py +++ b/testing/test_mark.py @@ -449,6 +449,21 @@ def test_parametrized_with_kwargs(pytester: Pytester) -> None: def test_parametrize_overriden_extended_fixture(pytester: Pytester) -> None: """Overriden fixtures must pass over dependend fixtures for parameterization (#12091)""" + pytester.makeconftest( + """ + import pytest + + @pytest.fixture + def not_needed(): + assert False, "Should not be called!" + + @pytest.fixture + def main(foo): + assert False, "Should not be called!" + + """ + ) + py_file = pytester.makepyfile( """\ import pytest