mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix dbm_gnu test relying on set order.
This commit is contained in:
parent
f47b20f0b0
commit
16684eb624
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue