Benjamin Peterson | ee8712c | 2008-05-20 21:35:26 +0000 | [diff] [blame] | 1 | from 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, |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 8 | factory, transactions, hooks, regression, |
| 9 | dump) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 10 | |
| 11 | def test_main(): |
| 12 | run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(), |
Christian Heimes | bbe741d | 2008-03-28 10:53:29 +0000 | [diff] [blame] | 13 | factory.suite(), transactions.suite(), |
| 14 | hooks.suite(), regression.suite(), dump.suite()) |
Thomas Wouters | 49fd7fa | 2006-04-21 10:40:58 +0000 | [diff] [blame] | 15 | |
| 16 | if __name__ == "__main__": |
| 17 | test_main() |