From: Zac Medico Date: Sat, 21 May 2011 04:14:49 +0000 (-0700) Subject: ambigous_merge_order: handle more failure modes X-Git-Tag: v2.1.9.50~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e9adefc7bdeff9287b62184cf68e9eeb156ef0a8;p=portage.git ambigous_merge_order: handle more failure modes --- diff --git a/pym/portage/tests/resolver/ResolverPlayground.py b/pym/portage/tests/resolver/ResolverPlayground.py index 667731b1b..5048b44e2 100644 --- a/pym/portage/tests/resolver/ResolverPlayground.py +++ b/pym/portage/tests/resolver/ResolverPlayground.py @@ -559,6 +559,14 @@ class ResolverPlaygroundTestCase(object): if not match: # result doesn't match, so stop early break + if expected_obj: + # result does not match, so stop early + new_expected.append(tuple(expected_obj)) + break + if expected_stack: + # result does not match, add leftovers to new_expected + expected_stack.reverse() + new_expected.extend(expected_stack) expected = new_expected elif key == "unstable_keywords" and expected is not None: