1 | n/a | import test.support |
---|
2 | n/a | |
---|
3 | n/a | # Skip test if _sqlite3 module not installed |
---|
4 | n/a | test.support.import_module('_sqlite3') |
---|
5 | n/a | |
---|
6 | n/a | import unittest |
---|
7 | n/a | import sqlite3 |
---|
8 | n/a | from sqlite3.test import (dbapi, types, userfunctions, |
---|
9 | n/a | factory, transactions, hooks, regression, |
---|
10 | n/a | dump) |
---|
11 | n/a | |
---|
12 | n/a | def load_tests(*args): |
---|
13 | n/a | if test.support.verbose: |
---|
14 | n/a | print("test_sqlite: testing with version", |
---|
15 | n/a | "{!r}, sqlite_version {!r}".format(sqlite3.version, |
---|
16 | n/a | sqlite3.sqlite_version)) |
---|
17 | n/a | return unittest.TestSuite([dbapi.suite(), types.suite(), |
---|
18 | n/a | userfunctions.suite(), |
---|
19 | n/a | factory.suite(), transactions.suite(), |
---|
20 | n/a | hooks.suite(), regression.suite(), |
---|
21 | n/a | dump.suite()]) |
---|
22 | n/a | |
---|
23 | n/a | if __name__ == "__main__": |
---|
24 | n/a | unittest.main() |
---|