From: Benjamin Peterson <benjamin@python.org> Date: Tue, 21 Feb 2012 02:47:54 +0000 (-0500) Subject: don't rely on dict order here X-Git-Tag: v2.7.3rc1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5bc92e0824aadca21498aca61a002bc8c3a470d8;p=python don't rely on dict order here --- diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py index f4bbc3887a..e9169a24e7 100644 --- a/Lib/test/test_gdbm.py +++ b/Lib/test/test_gdbm.py @@ -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()