Commit 2cd16552 authored by Christian Theune's avatar Christian Theune

Fix test that incorrectly relied on the order of a list that was generated

from a dict.
parent b25c4aac
......@@ -55,7 +55,9 @@ class WeakSetTests(unittest.TestCase):
w.add(dummy3)
del dummy3
L = [x() for x in w.as_weakref_list()]
self.assertEqual(L, [dummy, dummy2])
# L is a list, but it does not have a guaranteed order.
self.assert_(list, type(L))
self.assertEqual(set(L), set([dummy, dummy2]))
def test_map(self):
w = WeakSet()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment