summaryrefslogtreecommitdiff
path: root/coverage
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-01-11 19:28:48 -0500
committerNed Batchelder <ned@nedbatchelder.com>2020-01-11 19:29:50 -0500
commit6c9b729b86ca6b05c025964905b79e42306f2b12 (patch)
tree80603301450c32580a6eb4ba7fa311a88931a95d /coverage
parent0b4eeedccd64de32b0837dffd3400e58315ab405 (diff)
downloadpython-coveragepy-git-6c9b729b86ca6b05c025964905b79e42306f2b12.tar.gz
Include SQLite compile_options in "debug sys"
Diffstat (limited to 'coverage')
-rw-r--r--coverage/sqldata.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/sqldata.py b/coverage/sqldata.py
index 03a64b2a..b1adeb96 100644
--- a/coverage/sqldata.py
+++ b/coverage/sqldata.py
@@ -951,9 +951,13 @@ class CoverageData(SimpleReprMixin):
Returns a list of (key, value) pairs.
"""
+ with SqliteDb(":memory:", debug=NoDebugging()) as db:
+ compile_options = [row[0] for row in db.execute("pragma compile_options")]
+
return [
('sqlite3_version', sqlite3.version),
('sqlite3_sqlite_version', sqlite3.sqlite_version),
+ ('sqlite3_compile_options', compile_options),
]