

@pytest.mark.skipif("sys.platform == 'win32'")
def test_add_symlink(self, tmpdir, monkeypatch):
    monkeypatch.setattr(pip.req.req_uninstall, 'is_local', mock_is_local)
    f = os.path.join(tmpdir, 'foo')
    with open(f, 'w'):
        pass
    l = os.path.join(tmpdir, 'foo_link')
    os.symlink(f, l)
    ups = UninstallPathSet(dist=Mock())
    ups.add(l)
    assert (ups.paths == set([l]))

dataset/ETHPy150Open pypa/pip/tests/unit/test_req_uninstall.py TestUninstallPathSet.test_add_symlink/original