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

Method check

Lib/test/test_dbm_sqlite3.py:312–315  ·  view source on GitHub ↗
(self, flag, fn, should_succeed=False)

Source from the content-addressed store, hash-verified

310 cx.execute("CREATE TABLE Dict (invalid_schema)")
311
312 def check(self, flag, fn, should_succeed=False):
313 with closing(dbm_sqlite3.open(self.filename, flag)) as db:
314 with self.assertRaises(dbm_sqlite3.error):
315 fn(db)
316
317 @staticmethod
318 def read(db):

Callers

nothing calls this directly

Calls 4

closingClass · 0.90
fnFunction · 0.85
openMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected