~ubuntu-branches/ubuntu/trusty/python3.4/trusty-proposed

« back to all changes in this revision

Viewing changes to Lib/test/test_sqlite.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-25 09:44:27 UTC
  • Revision ID: package-import@ubuntu.com-20131125094427-lzxj8ap5w01lmo7f
Tags: upstream-3.4~b1
ImportĀ upstreamĀ versionĀ 3.4~b1

Show diffs side-by-side

added added

removed removed

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