Kaydet (Commit) 7ec97f41 authored tarafından Ezio Melotti's avatar Ezio Melotti

#17692: merge with 3.3.

...@@ -3,21 +3,22 @@ import test.support ...@@ -3,21 +3,22 @@ import test.support
# Skip test if _sqlite3 module not installed # Skip test if _sqlite3 module not installed
test.support.import_module('_sqlite3') test.support.import_module('_sqlite3')
import unittest
import sqlite3 import sqlite3
from sqlite3.test import (dbapi, types, userfunctions, from sqlite3.test import (dbapi, types, userfunctions,
factory, transactions, hooks, regression, factory, transactions, hooks, regression,
dump) dump)
def test_main(): def load_tests(*args):
if test.support.verbose: if test.support.verbose:
print("test_sqlite: testing with version", print("test_sqlite: testing with version",
"{!r}, sqlite_version {!r}".format(sqlite3.version, "{!r}, sqlite_version {!r}".format(sqlite3.version,
sqlite3.sqlite_version)) sqlite3.sqlite_version))
test.support.run_unittest(dbapi.suite(), types.suite(), return unittest.TestSuite([dbapi.suite(), types.suite(),
userfunctions.suite(), userfunctions.suite(),
factory.suite(), transactions.suite(), factory.suite(), transactions.suite(),
hooks.suite(), regression.suite(), hooks.suite(), regression.suite(),
dump.suite()) dump.suite()])
if __name__ == "__main__": if __name__ == "__main__":
test_main() unittest.main()
...@@ -84,6 +84,9 @@ Tests ...@@ -84,6 +84,9 @@ Tests
- Issue #17690: test_time now works with unittest test discovery. - Issue #17690: test_time now works with unittest test discovery.
Patch by Zachary Ware. Patch by Zachary Ware.
- Issue #17692: test_sqlite now works with unittest test discovery.
Patch by Zachary Ware.
What's New in Python 3.3.1 release candidate 1? What's New in Python 3.3.1 release candidate 1?
=============================================== ===============================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment