From 5bc92e0824aadca21498aca61a002bc8c3a470d8 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 20 Feb 2012 21:47:54 -0500 Subject: [PATCH] don't rely on dict order here --- Lib/test/test_gdbm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.50.0