Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 1 | from test.test_support import run_unittest, TestSkipped |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 2 | |
| 3 | try: |
| 4 | import _sqlite3 |
| 5 | except ImportError: |
| 6 | raise TestSkipped('no sqlite available') |
| 7 | from sqlite3.test import (dbapi, types, userfunctions, |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 8 | factory, transactions, hooks, regression) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 9 | |
| 10 | def test_main(): |
| 11 | run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(), |
Thomas Wouters | 477c8d5 | 2006-05-27 19:21:47 +0000 | [diff] [blame] | 12 | factory.suite(), transactions.suite(), hooks.suite(), |
| 13 | regression.suite()) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 14 | |
| 15 | if __name__ == "__main__": |
| 16 | test_main() |