We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86d8b46 commit e34bb40Copy full SHA for e34bb40
Lib/sqlite3/test/dbapi.py
@@ -880,6 +880,13 @@ def test_cursor_executescript_too_large_script(self, maxsize):
880
with self.assertRaises(sqlite.DataError):
881
cur.executescript("create table a(s);".ljust(size))
882
883
+ def test_cursor_executescript_tx_control(self):
884
+ con = sqlite.connect(":memory:")
885
+ con.execute("begin")
886
+ self.assertTrue(con.in_transaction)
887
+ con.executescript("select 1")
888
+ self.assertFalse(con.in_transaction)
889
+
890
def test_connection_execute(self):
891
con = sqlite.connect(":memory:")
892
result = con.execute("select 5").fetchone()[0]
0 commit comments