We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a93dcaa commit f04bd09Copy full SHA for f04bd09
Lib/sqlite3/test/dbapi.py
@@ -794,6 +794,13 @@ def test_cursor_executescript_too_large_script(self, maxsize):
794
with self.assertRaises(sqlite.DataError):
795
cur.executescript("create table a(s);".ljust(size))
796
797
+ def test_cursor_executescript_tx_control(self):
798
+ con = sqlite.connect(":memory:")
799
+ con.execute("begin")
800
+ self.assertTrue(con.in_transaction)
801
+ con.executescript("select 1")
802
+ self.assertFalse(con.in_transaction)
803
+
804
def test_connection_execute(self):
805
con = sqlite.connect(":memory:")
806
result = con.execute("select 5").fetchone()[0]
0 commit comments