

def test_no_mpkg(data):
    'Finder skips zipfiles with "macosx10" in the name.'
    finder = PackageFinder([data.find_links], [], session=PipSession())
    req = InstallRequirement.from_line('pkgwithmpkg')
    found = finder.find_requirement(req, False)
    assert found.url.endswith('pkgwithmpkg-1.0.tar.gz'), found

dataset/ETHPy150Open pypa/pip/tests/unit/test_finder.py test_no_mpkg/original