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

Method setUp

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

Source from the content-addressed store, hash-verified

68class ReadOnly(_SQLiteDbmTests):
69
70 def setUp(self):
71 super().setUp()
72 with dbm_sqlite3.open(self.filename, "w") as db:
73 db[b"key1"] = "value1"
74 db[b"key2"] = "value2"
75 self.db = dbm_sqlite3.open(self.filename, "r")
76
77 def tearDown(self):
78 self.db.close()

Callers

nothing calls this directly

Calls 3

superClass · 0.85
setUpMethod · 0.45
openMethod · 0.45

Tested by

no test coverage detected