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

Method test_auto_commit

Lib/test/test_sqlite3/test_regression.py:225–233  ·  view source on GitHub ↗

Verifies that creating a connection in autocommit mode works. 2.5.3 introduced a regression so that these could no longer be created.

(self)

Source from the content-addressed store, hash-verified

223 cur = con.cursor()
224
225 def test_auto_commit(self):
226 """
227 Verifies that creating a connection in autocommit mode works.
228 2.5.3 introduced a regression so that these could no longer
229 be created.
230 """
231 with memory_database(isolation_level=None) as con:
232 self.assertIsNone(con.isolation_level)
233 self.assertFalse(con.in_transaction)
234
235 def test_pragma_autocommit(self):
236 """

Callers

nothing calls this directly

Calls 3

memory_databaseFunction · 0.85
assertIsNoneMethod · 0.80
assertFalseMethod · 0.80

Tested by

no test coverage detected