2009-03-26 21:10:30 +00:00
|
|
|
import unittest
|
2009-03-30 23:05:48 +00:00
|
|
|
from test.test_support import run_unittest, import_module
|
|
|
|
|
|
2009-03-31 23:45:39 +00:00
|
|
|
# Skip test if _sqlite3 module was not built.
|
2009-03-30 23:05:48 +00:00
|
|
|
import_module('_sqlite3')
|
2006-04-01 00:57:31 +00:00
|
|
|
|
2010-01-08 18:41:40 +00:00
|
|
|
import warnings
|
2008-02-29 22:08:41 +00:00
|
|
|
from sqlite3.test import (dbapi, types, userfunctions, py25tests,
|
2008-03-28 08:32:09 +00:00
|
|
|
factory, transactions, hooks, regression,
|
|
|
|
|
dump)
|
2006-04-01 00:57:31 +00:00
|
|
|
|
|
|
|
|
def test_main():
|
2010-01-08 18:41:40 +00:00
|
|
|
with warnings.catch_warnings():
|
|
|
|
|
# Silence Py3k warnings
|
|
|
|
|
warnings.filterwarnings("ignore", "buffer.. not supported",
|
|
|
|
|
DeprecationWarning)
|
|
|
|
|
warnings.filterwarnings("ignore", "classic int division",
|
|
|
|
|
DeprecationWarning)
|
|
|
|
|
run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
|
|
|
|
|
py25tests.suite(), factory.suite(), transactions.suite(),
|
|
|
|
|
hooks.suite(), regression.suite(), dump.suite())
|
2006-04-01 00:57:31 +00:00
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
test_main()
|