# -*- coding: utf-8 -*-

import pytest


def pytest_addoption(parser):
    group = parser.getgroup('hidecaptured')
    group.addoption(
        '--foo',
        action='store',
        dest='dest_foo',
        default=2016,
        help='Set the value for the fixture "bar".'
    )

    parser.addini('HELLO', 'Dummy pytest.ini setting')


@pytest.fixture
def bar(request):
    return request.config.option.dest_foo

@@ -21,396 +21,565 @@
 -*-%0A
-%0Aimport pytest%0A%0A%0Adef pytest_addoption(parser):%0A    group = parser.getgroup('hidecaptured')%0A    group.addoption(%0A        '--foo',%0A        action='store',%0A        dest='dest_foo',%0A        default=2016,%0A        help='Set the value for the fixture %22bar%22.'%0A    )%0A%0A    parser.addini('HELLO', 'Dummy pytest.ini setting')%0A%0A%0A@pytest.fixture%0Adef bar(request):%0A    return request.config.option.dest_foo
+def pytest_runtest_logreport(report):%0A    %22%22%22Overwrite report by removing any captured stderr.%22%22%22%0A    # print(%22PLUGIN SAYS -%3E report -%3E %7B0%7D%22.format(report))%0A    # print(%22PLUGIN SAYS -%3E report.sections -%3E %7B0%7D%22.format(report.sections))%0A    # print(%22PLUGIN SAYS -%3E dir(report) -%3E %7B0%7D%22.format(dir(report)))%0A    # print(%22PLUGIN SAYS -%3E type(report) -%3E %7B0%7D%22.format(type(report)))%0A    sections = %5Bitem for item in report.sections if item%5B0%5D not in (%22Captured stderr call%22)%5D%0A    # print(%22PLUGIN SAYS -%3E sections -%3E %7B0%7D%22.format(sections))%0A    report.sections = sections
 %0A

Implement the plugin feature