'Test with things raising OSError.'

def test_normal_path_oserror(self, mocker, git_str_subprocess_fake, caplog):

    m = mocker.patch('qutebrowser.utils.version.os')
    m.path.join.side_effect = OSError
    mocker.patch('qutebrowser.utils.version.utils.read_file', side_effect=OSError)
    with caplog.at_level(logging.ERROR, 'misc'):
        assert (version._git_str() is None)
