blob: 8f8cd8750ba8009e45ef5ee00d7e53f9141cb33c [file] [log] [blame]
R. David Murrayd68d4e82010-09-29 01:22:20 +00001from test.support import run_unittest, import_module, verbose
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00002
R. David Murraya21e4ca2009-03-31 23:16:50 +00003# Skip test if _sqlite3 module not installed
4import_module('_sqlite3')
5
R. David Murrayd68d4e82010-09-29 01:22:20 +00006import sqlite3
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00007from sqlite3.test import (dbapi, types, userfunctions,
Christian Heimesbbe741d2008-03-28 10:53:29 +00008 factory, transactions, hooks, regression,
9 dump)
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000010
11def test_main():
R. David Murrayd68d4e82010-09-29 01:22:20 +000012 if verbose:
13 print("test_sqlite: testing with version",
14 "{!r}, sqlite_version {!r}".format(sqlite3.version,
15 sqlite3.sqlite_version))
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000016 run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
Christian Heimesbbe741d2008-03-28 10:53:29 +000017 factory.suite(), transactions.suite(),
18 hooks.suite(), regression.suite(), dump.suite())
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000019
20if __name__ == "__main__":
21 test_main()