Lines Matching refs:_fname
15 _fname = os.path.join(dirname, os_helper.TESTFN) variable
50 f = dbm.open(_fname, 'n')
65 self.assertRaises(dbm.error, dbm.open, _fname)
68 f = dbm.open(_fname, 'c')
77 os_helper.create_empty_file(_fname)
78 with dbm.open(_fname, 'n') as f:
83 f = dbm.open(_fname, 'c')
93 f = dbm.open(_fname, 'r')
105 f = dbm.open(_fname, 'r')
113 f = dbm.open(_fname, 'c')
125 f = dbm.open(_fname, 'r')
137 with dbm.open(_fname, 'c') as d:
166 with module.open(_fname, 'c'): pass
167 self.assertEqual(name, self.dbm.whichdb(_fname))
169 with module.open(_fname, 'w') as f:
175 self.assertEqual(name, self.dbm.whichdb(_fname))
180 with open(_fname + '.db', 'wb'): pass
181 self.assertIsNone(self.dbm.whichdb(_fname))