got_token = got_stack.pop()
expected_obj = expected_stack.pop()
if isinstance(expected_obj, basestring):
- new_expected.append(got_token)
- continue
+ new_expected.append(expected_obj)
+ if got_token == expected_obj:
+ continue
+ # result doesn't match, so stop early
+ break
expected_obj = set(expected_obj)
try:
expected_obj.remove(got_token)
# Test optimal merge order for a circular dep that is
# RDEPEND in one direction and PDEPEND in the other.
ResolverPlaygroundTestCase(
- ["app-misc/some-app-a"],
+ ["app-misc/some-app-b"],
success = True,
ambigous_merge_order = True,
mergelist = ["app-misc/circ-post-runtime-a-1", "app-misc/circ-post-runtime-b-1", "app-misc/some-app-b-1"]),