MCPcopy Index your code
hub / github.com/python/cpython / test_localized_error

Method test_localized_error

Lib/test/test_dbm_gnu.py:215–218  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

213 '',
214 )
215 def test_localized_error(self):
216 with temp_dir() as d:
217 create_empty_file(os.path.join(d, 'test'))
218 self.assertRaises(gdbm.error, gdbm.open, filename, 'r')
219
220
221if __name__ == '__main__':

Callers

nothing calls this directly

Calls 4

temp_dirFunction · 0.90
create_empty_fileFunction · 0.90
joinMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected