Commits

Georg Brandl  committed 2a83c7e

Fix dbm_gnu test relying on set order.

  • Participants
  • Parent commits 2057b6c
  • Branches 3.1

Comments (0)

Files changed (1)

File Lib/test/test_dbm_gnu.py

         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()