def test_issues3_autouse_fixtures_should_run_first(testdir):
    testdir.makepyfile("\n        import pytest\n        gl = False\n        @pytest.fixture(autouse=True)\n        def auto_one():\n            global gl\n            gl = True\n\n        @pytest.fixture\n        def one():\n            return 1 if gl is True else -1\n\n        @pytest.mark.parametrize('arg1', [\n            pytest.lazy_fixture('one')\n        ])\n        def test_some(arg1):\n            assert arg1 == 1\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=1)
def test_issues3_autouse_fixtures_should_run_first(testdir):
    testdir.makepyfile("\n        import pytest\n        gl = False\n        @pytest.fixture(autouse=True)\n        def auto_one():\n            global gl\n            gl = True\n\n        @pytest.fixture\n        def one():\n            return 1 if gl is True else -1\n\n        @pytest.mark.parametrize('arg1', [\n            pytest.lazy_fixture('one')\n        ])\n        def test_some(arg1):\n            assert arg1 == 1\n    ")
    reprec = testdir.inline_run('-s')
    reprec.assertoutcome(passed=1)