Lines Matching refs:open
20 self.g = gdbm.open(filename, 'c')
47 self.assertRaises(gdbm.error, gdbm.open, filename, 'r')
49 self.g = gdbm.open(filename, 'c')
53 self.assertRaises(gdbm.error, lambda: gdbm.open(filename, 'rx').close())
61 self.g = gdbm.open(filename, mode)
68 self.g = gdbm.open(filename, mode + flag)
72 self.g = gdbm.open(filename, 'c')
93 with gdbm.open(filename, 'c') as db:
96 with gdbm.open(filename, 'r') as db:
105 with gdbm.open(filename, 'c') as db:
107 with gdbm.open(filename, 'r') as db:
113 with gdbm.open(filename, 'c') as db:
115 with gdbm.open(filename, 'r') as db:
129 with gdbm.open(filename, 'c') as db:
132 with gdbm.open(filename, 'r') as db: