Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7c573f7

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)