]> granicus.if.org Git - python/commitdiff
don't rely on dict order here
authorBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 02:47:54 +0000 (21:47 -0500)
committerBenjamin Peterson <benjamin@python.org>
Tue, 21 Feb 2012 02:47:54 +0000 (21:47 -0500)
Lib/test/test_gdbm.py

index f4bbc3887a02641a32a82d0e2525b28b89a690f6..e9169a24e7ea7696ed6160dadf7bcd8573f18874 100644 (file)
@@ -47,7 +47,7 @@ class TestGdbm(unittest.TestCase):
         all = set(gdbm.open_flags)
         # Test standard flags (presumably "crwn").
         modes = all - set('fsu')
-        for mode in modes:
+        for mode in sorted(modes):
             self.g = gdbm.open(filename, mode)
             self.g.close()