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

Method setUp

Lib/test/test_sqlite3/test_regression.py:477–483  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

475 msg = "Recursive use of cursors not allowed"
476
477 def setUp(self):
478 self.con = sqlite.connect(":memory:",
479 detect_types=sqlite.PARSE_COLNAMES)
480 self.cur = self.con.cursor()
481 self.cur.execute("create table test(x foo)")
482 self.cur.executemany("insert into test(x) values (?)",
483 [("foo",), ("bar",)])
484
485 def tearDown(self):
486 self.cur.close()

Callers

nothing calls this directly

Calls 4

cursorMethod · 0.80
executemanyMethod · 0.80
connectMethod · 0.45
executeMethod · 0.45

Tested by

no test coverage detected