summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorR. David Murray <rdmurray@bitdance.com>2010-09-29 01:22:20 (GMT)
committerR. David Murray <rdmurray@bitdance.com>2010-09-29 01:22:20 (GMT)
commitd68d4e8e42012c048aabd14c6e239caac1c09ae6 (patch)
tree5569786315a708813f3212b1eff03b49905ec2ba
parent11cabcf73d82ca0174de85144930ce87ee538581 (diff)
downloadcpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.zip
cpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.tar.gz
cpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.tar.bz2
Have test_sqlite print version info when run in verbose mode.
-rw-r--r--Lib/test/test_sqlite.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/test/test_sqlite.py b/Lib/test/test_sqlite.py
index d82b0a9..8f8cd87 100644
--- a/Lib/test/test_sqlite.py
+++ b/Lib/test/test_sqlite.py
@@ -1,13 +1,18 @@
-from test.support import run_unittest, import_module
+from test.support import run_unittest, import_module, verbose
# Skip test if _sqlite3 module not installed
import_module('_sqlite3')
+import sqlite3
from sqlite3.test import (dbapi, types, userfunctions,
factory, transactions, hooks, regression,
dump)
def test_main():
+ if verbose:
+ print("test_sqlite: testing with version",
+ "{!r}, sqlite_version {!r}".format(sqlite3.version,
+ sqlite3.sqlite_version))
run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
factory.suite(), transactions.suite(),
hooks.suite(), regression.suite(), dump.suite())