diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-09-29 01:22:20 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-09-29 01:22:20 (GMT) |
commit | d68d4e8e42012c048aabd14c6e239caac1c09ae6 (patch) | |
tree | 5569786315a708813f3212b1eff03b49905ec2ba /Lib/test/test_sqlite.py | |
parent | 11cabcf73d82ca0174de85144930ce87ee538581 (diff) | |
download | cpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.zip cpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.tar.gz cpython-d68d4e8e42012c048aabd14c6e239caac1c09ae6.tar.bz2 |
Have test_sqlite print version info when run in verbose mode.
Diffstat (limited to 'Lib/test/test_sqlite.py')
-rw-r--r-- | Lib/test/test_sqlite.py | 7 |
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()) |