def test_affinity_fail():
    try:
        arch = get_preferred_affinity(
            ['amd64', 'sparc', 'armhf'],
            ["ppc64", "armel"],
            valid_arches
        )
        assert False == True, "Didn't bomb out as expected."
    except ValueError:
        pass
dataset/ETHPy150Open opencollab/debile/tests/test_arches.py/test_affinity_fail/original