From: Georg Brandl Date: Mon, 20 Feb 2012 21:48:06 +0000 (+0100) Subject: Fix dbm_gnu test relying on set order. X-Git-Tag: v3.2.3rc1~24 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=16684eb62449922b8e066d8063cebc682c0ea5c7;p=thirdparty%2FPython%2Fcpython.git Fix dbm_gnu test relying on set order. --- diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py index ce96ce465e72..30a39f7b8956 100755 --- a/Lib/test/test_dbm_gnu.py +++ b/Lib/test/test_dbm_gnu.py @@ -53,7 +53,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): # put "c" mode first self.g = gdbm.open(filename, mode) self.g.close()