human
I wrote the below code

    def MyEXE(*args, **kwargs):
        args = list(args)
        args.append([('W    ignore', '', 'OPTION')])
        return EXE(*args, **kwargs)
    import PyInstaller
    EXE = PyInstaller.building.build_main.EXE
    monkeypatch.setattr('PyInstaller.building.build_main.EXE', MyEXE)
    pyi_builder.test_source("\n                                import    sys\n                                assert    'ignore'    in    sys.warnoptions\n                                ")

What's a good function header?
assistant
#Here's a good function header.

def test_option_w_ignore(pyi_builder, monkeypatch):