def test_link_package_versions_substring_fails(self):

        # TODO: Uncomment these, when #1217 is fixed
        # link = Link('http:/yo/pytest-xdist-1.0.tar.gz')
        # result = self.finder._link_package_versions(link, self.search_name)
        # assert result == [], result

        # link = Link('http:/yo/pytest2-1.0.tar.gz')
        # result = self.finder._link_package_versions(link, self.search_name)
        # assert result == [], result

        link = Link('http:/yo/pytest_xdist-1.0-py2.py3-none-any.whl')
        result = self.finder._link_package_versions(link, self.search_name)
        assert result == [], result
Test that 'pytest<something> archives won't match for 'pytest'
dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py/test_link_package_versions.test_link_package_versions_substring_fails