'Test with relative=True, cwd unset and abspath raising OSError.'

def test_file_relative_os_error(self, os_mock, is_url_mock):

    os_mock.path.abspath.side_effect = OSError
    os_mock.path.exists.return_value = True
    os_mock.path.isabs.return_value = False
    is_url_mock.return_value = True
    url = urlutils.fuzzy_url('foo', relative=True)
    assert (not os_mock.path.exists.called)
    assert (url == QUrl('http://foo'))
