def test_affinity_any():
    arch = get_preferred_affinity(
        ['amd64', 'sparc', 'armhf'],
        ["any"],
        valid_arches
    )
    assert arch.name == 'amd64'
dataset/ETHPy150Open opencollab/debile/tests/test_arches.py/test_affinity_any/original