mirror of https://github.com/python/cpython
21 lines
639 B
Python
21 lines
639 B
Python
import test.support
|
|
from test.support import import_helper
|
|
from test.support import load_package_tests
|
|
|
|
# Skip test if _sqlite3 module not installed
|
|
import_helper.import_module('_sqlite3')
|
|
|
|
import unittest
|
|
import os
|
|
import sqlite3.test
|
|
|
|
def load_tests(loader, tests, pattern):
|
|
if test.support.verbose:
|
|
print("test_sqlite: testing with version",
|
|
"{!r}, sqlite_version {!r}".format(sqlite3.version,
|
|
sqlite3.sqlite_version))
|
|
return load_package_tests(os.path.dirname(sqlite3.test.__file__), loader, tests, pattern)
|
|
|
|
if __name__ == "__main__":
|
|
unittest.main()
|