Fix dbm_gnu test relying on set order.

This commit is contained in:
Georg Brandl 2012-02-20 22:48:06 +01:00
parent 06b1c4f68b
commit 7c573f7a07

View file

@ -49,7 +49,7 @@ def test_flags(self):
all = set(gdbm.open_flags) all = set(gdbm.open_flags)
# Test standard flags (presumably "crwn"). # Test standard flags (presumably "crwn").
modes = all - set('fsu') 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 = gdbm.open(filename, mode)
self.g.close() self.g.close()