8000 Fix dbm_gnu test relying on set order. · python/cpython@7c573f7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7c573f7

Browse files
committed
Fix dbm_gnu test relying on set order.
1 parent 06b1c4f commit 7c573f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_dbm_gnu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def test_flags(self):
4949
all = set(gdbm.open_flags)
5050
# Test standard flags (presumably "crwn").
5151
modes = all - set('fsu')
52-
for mode in modes:
52+
for mode in sorted(modes): # put "c" mode first
5353
self.g = gdbm.open(filename, mode)
5454
self.g.close()
5555

0 commit comments

Comments
 (0)
0