From 48d95f9510328769faa174f569548f5c63513d95 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 3 Sep 2019 13:35:37 -0400 Subject: Need to set a sqlite attribute on a real sqlite connection --- coverage/sqldata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/sqldata.py') diff --git a/coverage/sqldata.py b/coverage/sqldata.py index 3142ee3f..babfcb8d 100644 --- a/coverage/sqldata.py +++ b/coverage/sqldata.py @@ -537,7 +537,7 @@ class CoverageData(SimpleReprMixin): cur.close() with self._connect() as conn: - conn.isolation_level = 'IMMEDIATE' + conn.con.isolation_level = 'IMMEDIATE' # Get all tracers in the DB. Files not in the tracers are assumed # to have an empty string tracer. Since Sqlite does not support -- cgit v1.2.1