

def test_skip_invalid_wheel_link(self, caplog, data):
    '\n        Test if PackageFinder skips invalid wheel filenames\n        '
    req = InstallRequirement.from_line('invalid')
    finder = PackageFinder([data.find_links], [], session=PipSession())
    with pytest.raises(DistributionNotFound):
        finder.find_requirement(req, True)
    assert ('invalid.whl; invalid wheel filename' in caplog.text())

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py TestWheel.test_skip_invalid_wheel_link/original