R. David Murray | 3db8a34 | 2009-03-30 23:05:48 +0000 | [diff] [blame] | 1 | from test.test_support import run_unittest, import_module |
Anthony Baxter | c51ee69 | 2006-04-01 00:57:31 +0000 | [diff] [blame] | 2 | |
R. David Murray | 840ac92 | 2009-03-31 23:45:39 +0000 | [diff] [blame] | 3 | # Skip test if _sqlite3 module was not built. |
R. David Murray | 3db8a34 | 2009-03-30 23:05:48 +0000 | [diff] [blame] | 4 | import_module('_sqlite3') |
| 5 | |
Gerhard Häring | 1cc60ed | 2008-02-29 22:08:41 +0000 | [diff] [blame] | 6 | from sqlite3.test import (dbapi, types, userfunctions, py25tests, |
Gregory P. Smith | b980342 | 2008-03-28 08:32:09 +0000 | [diff] [blame] | 7 | factory, transactions, hooks, regression, |
| 8 | dump) |
Anthony Baxter | c51ee69 | 2006-04-01 00:57:31 +0000 | [diff] [blame] | 9 | |
| 10 | def test_main(): |
Senthil Kumaran | ce8e33a | 2010-01-08 19:04:16 +0000 | [diff] [blame] | 11 | run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(), |
| 12 | py25tests.suite(), factory.suite(), transactions.suite(), |
| 13 | hooks.suite(), regression.suite(), dump.suite()) |
Anthony Baxter | c51ee69 | 2006-04-01 00:57:31 +0000 | [diff] [blame] | 14 | |
| 15 | if __name__ == "__main__": |
| 16 | test_main() |