

def test_link_package_versions_substring_fails(self):
    "Test that 'pytest<something> archives won't match for 'pytest'"
    link = Link('http:/yo/pytest_xdist-1.0-py2.py3-none-any.whl')
    result = self.finder._link_package_versions(self, self.search_name)
    assert (result == []), result

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_link_package_versions.test_link_package_versions_substring_fails/VarMisuse@27/87 `link`->`self`