blob: f3bfd3e6812e5de113376a3e5fbd6878a22087a2 [file] [log] [blame]
Benjamin Petersonbec087f2009-03-26 21:10:30 +00001import unittest
R. David Murray3db8a342009-03-30 23:05:48 +00002from test.test_support import run_unittest, import_module
Anthony Baxterc51ee692006-04-01 00:57:31 +00003
R. David Murray840ac922009-03-31 23:45:39 +00004# Skip test if _sqlite3 module was not built.
R. David Murray3db8a342009-03-30 23:05:48 +00005import_module('_sqlite3')
6
Senthil Kumaran3ddc4352010-01-08 18:41:40 +00007import warnings
Gerhard Häring1cc60ed2008-02-29 22:08:41 +00008from sqlite3.test import (dbapi, types, userfunctions, py25tests,
Gregory P. Smithb9803422008-03-28 08:32:09 +00009 factory, transactions, hooks, regression,
10 dump)
Anthony Baxterc51ee692006-04-01 00:57:31 +000011
12def test_main():
Senthil Kumaran3ddc4352010-01-08 18:41:40 +000013 with warnings.catch_warnings():
14 # Silence Py3k warnings
15 warnings.filterwarnings("ignore", "buffer.. not supported",
16 DeprecationWarning)
17 warnings.filterwarnings("ignore", "classic int division",
18 DeprecationWarning)
19 run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
20 py25tests.suite(), factory.suite(), transactions.suite(),
21 hooks.suite(), regression.suite(), dump.suite())
Anthony Baxterc51ee692006-04-01 00:57:31 +000022
23if __name__ == "__main__":
24 test_main()