def test_all_compilers(config): all_compilers = compilers.all_compilers() filtered = [x for x in all_compilers if str(x.spec) == '[email protected]'] filtered = [x for x in filtered if x.operating_system == 'SuSE11'] assert len(filtered) == 1