Skip to content

Commit dc60055

Browse files
sqlite3_file_control
1 parent f9eb73d commit dc60055

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Lib/test/test_sqlite3/test_dbapi.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ def test_wal_preservation(self):
756756

757757

758758
def test_file_control_raises(self):
759-
with contextlib.closing(sqlite.connect(database=":memory:")) as cx:
759+
with memory_database() as con:
760760
with self.assertRaises(sqlite.ProgrammingError):
761761
cx.set_file_control(sqlite.SQLITE_FCNTL_PERSIST_WAL, 1)
762762

@@ -1888,8 +1888,6 @@ def test_on_conflict_replace(self):
18881888
self.assertEqual(self.cu.fetchall(), [('Very different data!', 'foo')])
18891889

18901890

1891-
1892-
18931891
@requires_subprocess()
18941892
class MultiprocessTests(unittest.TestCase):
18951893
CONNECTION_TIMEOUT = 0 # Disable the busy timeout.

0 commit comments

Comments
 (0)