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

Method test_disallow_instantiation

Lib/test/test_sqlite3/test_dbapi.py:294–297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

292 self.assertEqual(exc.sqlite_errorname, "SQLITE_CONSTRAINT_CHECK")
293
294 def test_disallow_instantiation(self):
295 with memory_database() as cx:
296 check_disallow_instantiation(self, type(cx("select 1")))
297 check_disallow_instantiation(self, sqlite.Blob)
298
299 def test_complete_statement(self):
300 self.assertFalse(sqlite.complete_statement("select t"))

Callers

nothing calls this directly

Calls 2

memory_databaseFunction · 0.85

Tested by

no test coverage detected