'-o should be handled as soon as possible and always override what\'s in ini files (#2238)'

@pytest.mark.parametrize('with_ini', [True, False])
def test_override_ini_handled_asap(self, testdir, with_ini):

    if with_ini:
        testdir.makeini('\n                                                                [pytest]\n                                                                python_files=test_*.py\n                                                ')
    testdir.makepyfile(unittest_ini_handle='\n                                                def    test():\n                                                                pass\n                                ')
    result = testdir.runpytest('--override-ini', 'python_files=unittest_*.py')
    result.stdout.fnmatch_lines(['*1    passed    in*'])
