test_stackLists: fix for PYTHONHASHSEED="random"
authorZac Medico <zmedico@gentoo.org>
Sat, 12 May 2012 19:27:17 +0000 (12:27 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 12 May 2012 19:30:12 +0000 (12:30 -0700)
pym/portage/tests/util/test_stackLists.py

index 8d01ea5ac8e686ee05f49215588dbd0bbf8c5b5c..e52477255763b6befdb5dc39b3fb9e5348eba936 100644 (file)
@@ -1,5 +1,5 @@
 # test_stackLists.py -- Portage Unit Testing Functionality
-# Copyright 2006 Gentoo Foundation
+# Copyright 2006-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 from portage.tests import TestCase
@@ -16,4 +16,4 @@ class StackListsTestCase(TestCase):
 
                for test in tests:
                        result = stack_lists( test[0], test[2] )
-                       self.assertEqual( result , test[1] )
+                       self.assertEqual( set(result) , set(test[1]) )