diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-02 14:19:38 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-06-02 12:07:39 +0200 |
commit | 43ab5aa390769ee9b57918cf5b57aa4a22586805 (patch) | |
tree | 595ca8caaf9977c12fe327a080fc3bd32b09a21d | |
parent | 2f67fae18be13f4bfce009e8639bab74383844cb (diff) | |
download | samba-43ab5aa390769ee9b57918cf5b57aa4a22586805.tar.gz samba-43ab5aa390769ee9b57918cf5b57aa4a22586805.tar.bz2 samba-43ab5aa390769ee9b57918cf5b57aa4a22586805.zip |
lib/tdb/python/tests/simple.py: don't assume TDB ordering.
TDB2 can break this assumption.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Thu Jun 2 12:07:40 CEST 2011 on sn-devel-104
-rw-r--r-- | lib/tdb/python/tests/simple.py | 4 |
1 files changed, 3 insertions, 1 deletions
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" |