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

Method setUp

Lib/test/test_dbm_sqlite3.py:305–310  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

303 """Verify that database exceptions are raised as dbm.sqlite3.error."""
304
305 def setUp(self):
306 super().setUp()
307 with closing(sqlite3.connect(self.filename)) as cx:
308 with cx:
309 cx.execute("DROP TABLE IF EXISTS Dict")
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:

Callers

nothing calls this directly

Calls 5

closingClass · 0.90
superClass · 0.85
setUpMethod · 0.45
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected