Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 9561d7f501bfb9e579ed57536c4c9b4e5eea68a3 authored by Ned Deily on 30 January 2018, 23:48:26 UTC
Update NEWS, docs, and patchlevel for 3.7.0b1
Tip revision: 9561d7f
test_sqlite.py
import test.support

# Skip test if _sqlite3 module not installed
test.support.import_module('_sqlite3')

import unittest
import sqlite3
from sqlite3.test import (dbapi, types, userfunctions,
                                factory, transactions, hooks, regression,
                                dump)

def load_tests(*args):
    if test.support.verbose:
        print("test_sqlite: testing with version",
              "{!r}, sqlite_version {!r}".format(sqlite3.version,
                                                 sqlite3.sqlite_version))
    return unittest.TestSuite([dbapi.suite(), types.suite(),
                               userfunctions.suite(),
                               factory.suite(), transactions.suite(),
                               hooks.suite(), regression.suite(),
                               dump.suite()])

if __name__ == "__main__":
    unittest.main()
back to top