[Python-checkins] cpython (3.1): Fix dbm_gnu test relying on set order.
georg.brandl
python-checkins at python.org
Mon Feb 20 23:52:18 CET 2012
http://hg.python.org/cpython/rev/2a83c7ed9ae6
changeset: 75090:2a83c7ed9ae6
branch: 3.1
user: Georg Brandl <georg at python.org>
date: Mon Feb 20 22:48:06 2012 +0100
summary:
Fix dbm_gnu test relying on set order.
files:
Lib/test/test_dbm_gnu.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_dbm_gnu.py b/Lib/test/test_dbm_gnu.py
--- a/Lib/test/test_dbm_gnu.py
+++ b/Lib/test/test_dbm_gnu.py
@@ -49,7 +49,7 @@
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()
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list