Tests: Fix bug in resolver/ResolverPlayground
authorSebastian Luther <SebastianLuther@gmx.de>
Mon, 9 Aug 2010 06:03:00 +0000 (08:03 +0200)
committerZac Medico <zmedico@gentoo.org>
Thu, 12 Aug 2010 08:17:25 +0000 (01:17 -0700)
pym/portage/tests/resolver/ResolverPlayground.py

index 4a714445cf4bddb6afb9e9432262686f1488551d..f77216b568793479ff3217fb60e1b81f1f1fdc56 100644 (file)
@@ -255,7 +255,7 @@ class ResolverPlaygroundTestCase(object):
                for key, value in self.checks.items():
                        got = getattr(result, key)
                        expected = value
-                       if key == "mergelist" and self.ignore_mergelist_order and value is not None :
+                       if key == "mergelist" and self.ignore_mergelist_order and got is not None :
                                got = set(got)
                                expected = set(expected)
                        elif key == "unstable_keywords" and expected is not None: