From 43ab5aa390769ee9b57918cf5b57aa4a22586805 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Thu, 2 Jun 2011 14:19:38 +0930 Subject: lib/tdb/python/tests/simple.py: don't assume TDB ordering. TDB2 can break this assumption. Signed-off-by: Rusty Russell Autobuild-User: Rusty Russell Autobuild-Date: Thu Jun 2 12:07:40 CEST 2011 on sn-devel-104 --- lib/tdb/python/tests/simple.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/tdb/python/tests/simple.py') diff --git a/lib/tdb/python/tests/simple.py b/lib/tdb/python/tests/simple.py index f5484a0523..99f31d2fcd 100644 --- a/lib/tdb/python/tests/simple.py +++ b/lib/tdb/python/tests/simple.py @@ -105,7 +105,9 @@ class SimpleTdbTests(TestCase): def test_iterator(self): self.tdb["bla"] = "1" self.tdb["brainslug"] = "2" - self.assertEquals(["bla", "brainslug"], list(self.tdb)) + l = list(self.tdb) + l.sort() + self.assertEquals(["bla", "brainslug"], l) def test_transaction_cancel(self): self.tdb["bloe"] = "2" -- cgit