From: Benjamin Peterson 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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5bc92e0824aadca21498aca61a002bc8c3a470d8;p=thirdparty%2FPython%2Fcpython.git don't rely on dict order here --- diff --git a/Lib/test/test_gdbm.py b/Lib/test/test_gdbm.py index f4bbc3887a02..e9169a24e7ea 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()