'Test that asking for "capfd" and "capsys" using request.getfixturevalue
in the same test is an error.'

def test_capturing_getfixturevalue(self, testdir):

    testdir.makepyfile('\n                                                def    test_one(capsys,    request):\n                                                                request.getfixturevalue("capfd")\n                                                def    test_two(capfd,    request):\n                                                                request.getfixturevalue("capsys")\n                                ')
    result = testdir.runpytest()
    result.stdout.fnmatch_lines(['*test_one*', '*capsys*capfd*same*time*', '*test_two*', '*capsys*capfd*same*time*', '*2    failed    in*'])
