blob: 1086330ab09e383605a372b7b043d22ca6d2593c [file] [log] [blame]
R. David Murray8f7bcb32010-10-02 13:29:13 +00001import test.support
Thomas Wouters49fd7fa2006-04-21 10:40:58 +00002
R. David Murraya21e4ca2009-03-31 23:16:50 +00003# Skip test if _sqlite3 module not installed
R. David Murray8f7bcb32010-10-02 13:29:13 +00004test.support.import_module('_sqlite3')
R. David Murraya21e4ca2009-03-31 23:16:50 +00005
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 Murray8f7bcb32010-10-02 13:29:13 +000012 if test.support.verbose:
R. David Murrayd68d4e82010-09-29 01:22:20 +000013 print("test_sqlite: testing with version",
14 "{!r}, sqlite_version {!r}".format(sqlite3.version,
15 sqlite3.sqlite_version))
R. David Murray8f7bcb32010-10-02 13:29:13 +000016 test.support.run_unittest(dbapi.suite(), types.suite(),
17 userfunctions.suite(),
18 factory.suite(), transactions.suite(),
19 hooks.suite(), regression.suite(),
20 dump.suite())
Thomas Wouters49fd7fa2006-04-21 10:40:58 +000021
22if __name__ == "__main__":
23 test_main()