def test_argnames_initialized_in_right_order2(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture\n        def one():\n            return [1]\n\n        @pytest.fixture\n        def plus_two(a):\n            a[0] = a[0] + 2\n        def test_skip1(a):\n            assert a == [3]\n\n        def pytest_generate_tests(metafunc):\n            metafunc.fixturenames = ['a', 'b']\n            metafunc.parametrize(argnames=['a', 'b'],\n                                 argvalues=[(pytest.lazy_fixture('one'), pytest.lazy_fixture('plus_two'))],\n                                 indirect=['b'])\n\n    ")
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=1)
def test_argnames_initialized_in_right_order2(testdir):
    testdir.makepyfile("\n        import pytest\n        @pytest.fixture\n        def one():\n            return [1]\n\n        @pytest.fixture\n        def plus_two(a):\n            a[0] = a[0] + 2\n        def test_skip1(a):\n            assert a == [3]\n\n        def pytest_generate_tests(metafunc):\n            metafunc.fixturenames = ['a', 'b']\n            metafunc.parametrize(argnames=['a', 'b'],\n                                 argvalues=[(pytest.lazy_fixture('one'), pytest.lazy_fixture('plus_two'))],\n                                 indirect=['b'])\n\n    ")
    reprec = testdir.inline_run('-s', '-v')
    reprec.assertoutcome(passed=1)