summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2012-02-20 21:48:06 (GMT)
committerGeorg Brandl <georg@python.org>2012-02-20 21:48:06 (GMT)
commit16684eb62449922b8e066d8063cebc682c0ea5c7 (patch)
treeb1bb41648bfb03a680850c923f60c2506f1c6b19
parentf47b20f0b00452e00a014c6fb80b911899845e2f (diff)
downloadcpython-16684eb62449922b8e066d8063cebc682c0ea5c7.zip
cpython-16684eb62449922b8e066d8063cebc682c0ea5c7.tar.gz
cpython-16684eb62449922b8e066d8063cebc682c0ea5c7.tar.bz2
Fix dbm_gnu test relying on set order.
-rwxr-xr-xLib/test/test_dbm_gnu.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py
index ce96ce4..30a39f7 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()