1import test.support 2 3# Skip test if _sqlite3 module not installed 4test.support.import_module('_sqlite3') 5 6import unittest 7import sqlite3 8from sqlite3.test import (dbapi, types, userfunctions, 9 factory, transactions, hooks, regression, 10 dump) 11 12def load_tests(*args): 13 if test.support.verbose: 14 print("test_sqlite: testing with version", 15 "{!r}, sqlite_version {!r}".format(sqlite3.version, 16 sqlite3.sqlite_version)) 17 return unittest.TestSuite([dbapi.suite(), types.suite(), 18 userfunctions.suite(), 19 factory.suite(), transactions.suite(), 20 hooks.suite(), regression.suite(), 21 dump.suite()]) 22 23if __name__ == "__main__": 24 unittest.main() 25