MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_misuse_reinit

Method test_misuse_reinit

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

Source from the content-addressed store, hash-verified

250 self.db.keys()
251
252 def test_misuse_reinit(self):
253 with self.assertRaises(dbm_sqlite3.error):
254 self.db.__init__("new.db", flag="n", mode=0o666)
255
256 def test_misuse_empty_filename(self):
257 for flag in "r", "w", "c", "n":

Callers

nothing calls this directly

Calls 2

assertRaisesMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected