test_sqlite.py 583 Bytes
Newer Older
1 2
from test.test_support import run_unittest, import_module

3
# Skip test if _sqlite3 module was not built.
4
import_module('_sqlite3')
5

6
from sqlite3.test import (dbapi, types, userfunctions, py25tests,
7 8
                                factory, transactions, hooks, regression,
                                dump)
9 10

def test_main():
11 12 13
    run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
                 py25tests.suite(), factory.suite(), transactions.suite(),
                 hooks.suite(), regression.suite(), dump.suite())
14 15 16

if __name__ == "__main__":
    test_main()