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

Method test_sqlite3

Lib/test/test_audit.py:168–184  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

166
167
168 def test_sqlite3(self):
169 sqlite3 = import_helper.import_module("sqlite3")
170 returncode, events, stderr = self.run_python("test_sqlite3")
171 if returncode:
172 self.fail(stderr)
173
174 if support.verbose:
175 print(*events, sep='\n')
176 actual = [ev[0] for ev in events]
177 expected = ["sqlite3.connect", "sqlite3.connect/handle"] * 2
178
179 if hasattr(sqlite3.Connection, "enable_load_extension"):
180 expected += [
181 "sqlite3.enable_load_extension",
182 "sqlite3.load_extension",
183 ]
184 self.assertEqual(actual, expected)
185
186
187 def test_sys_getframe(self):

Callers

nothing calls this directly

Calls 4

run_pythonMethod · 0.95
import_moduleMethod · 0.45
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected