def test_override_parametrized_fixture_issue_979(
        self, pytester: Pytester, param_args
    ) -> None:
        """Make sure a parametrized argument can override a parametrized fixture.

        This was a regression introduced in the fix for #736.
        """
        pytester.makepyfile(
            f"""
            import pytest

            @pytest.fixture(params=[1, 2])
            def fixt(request):
                return request.param

            @pytest.mark.parametrize({param_args}, [(3, 'x'), (4, 'x')])
            def test_foo(fixt, val):
                pass
        """
        )
        reprec = pytester.inline_run()
        reprec.assertoutcome(passed=2)
Make sure a parametrized argument can override a parametrized fixture.

        This was a regression introduced in the fix for #736.
        
testing/python/fixtures.py