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

Method test_sqlite3

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

Source from the content-addressed store, hash-verified

157
158
159 def test_sqlite3(self):
160 sqlite3 = import_helper.import_module("sqlite3")
161 returncode, events, stderr = self.run_python("test_sqlite3")
162 if returncode:
163 self.fail(stderr)
164
165 if support.verbose:
166 print(*events, sep='\n')
167 actual = [ev[0] for ev in events]
168 expected = ["sqlite3.connect", "sqlite3.connect/handle"] * 2
169
170 if hasattr(sqlite3.Connection, "enable_load_extension"):
171 expected += [
172 "sqlite3.enable_load_extension",
173 "sqlite3.load_extension",
174 ]
175 self.assertEqual(actual, expected)
176
177
178 def test_sys_getframe(self):

Callers

nothing calls this directly

Calls 6

run_pythonMethod · 0.95
hasattrFunction · 0.85
printFunction · 0.50
import_moduleMethod · 0.45
failMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected