merged the sqlite-integration branch.
This is based on pysqlite2.1.3, and provides a DB-API interface in
the standard library. You'll need sqlite 3.2.2 or later to build
this - if you have an earlier version, the C extension module will
not be built.
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index f229360..be60023 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -741,6 +741,7 @@
test_pwd
test_resource
test_signal
+ test_sqlite
test_sunaudiodev
test_threadsignals
test_timing
@@ -763,6 +764,7 @@
test_nis
test_ntpath
test_ossaudiodev
+ test_sqlite
test_sunaudiodev
""",
'mac':
@@ -802,6 +804,7 @@
test_pwd
test_resource
test_signal
+ test_sqlite
test_sunaudiodev
test_sundry
test_tarfile
@@ -826,6 +829,7 @@
test_openpty
test_pyexpat
test_sax
+ test_sqlite
test_sunaudiodev
test_sundry
""",
@@ -848,6 +852,7 @@
test_openpty
test_pyexpat
test_sax
+ test_sqlite
test_sunaudiodev
test_sundry
""",
@@ -875,6 +880,7 @@
test_pyexpat
test_queue
test_sax
+ test_sqlite
test_sunaudiodev
test_sundry
test_thread
@@ -915,6 +921,7 @@
test_pty
test_pwd
test_strop
+ test_sqlite
test_sunaudiodev
test_sundry
test_thread
@@ -944,6 +951,7 @@
test_ntpath
test_ossaudiodev
test_poll
+ test_sqlite
test_sunaudiodev
""",
'sunos5':
@@ -962,6 +970,7 @@
test_imgfile
test_linuxaudiodev
test_openpty
+ test_sqlite
test_zipfile
test_zlib
""",
@@ -988,6 +997,7 @@
test_openpty
test_pyexpat
test_sax
+ test_sqlite
test_sunaudiodev
test_zipfile
test_zlib
@@ -1013,6 +1023,7 @@
test_poll
test_popen2
test_resource
+ test_sqlite
test_sunaudiodev
""",
'cygwin':
@@ -1034,6 +1045,7 @@
test_nis
test_ossaudiodev
test_socketserver
+ test_sqlite
test_sunaudiodev
""",
'os2emx':
@@ -1060,6 +1072,7 @@
test_pty
test_resource
test_signal
+ test_sqlite
test_sunaudiodev
""",
'freebsd4':
@@ -1086,6 +1099,7 @@
test_scriptpackages
test_socket_ssl
test_socketserver
+ test_sqlite
test_sunaudiodev
test_tcl
test_timeout
@@ -1115,6 +1129,7 @@
test_macostools
test_nis
test_ossaudiodev
+ test_sqlite
test_sunaudiodev
test_tcl
test_winreg
@@ -1147,6 +1162,7 @@
test_plistlib
test_scriptpackages
test_tcl
+ test_sqlite
test_sunaudiodev
test_unicode_file
test_winreg
diff --git a/Lib/test/test_sqlite.py b/Lib/test/test_sqlite.py
new file mode 100644
index 0000000..1b1d0e5
--- /dev/null
+++ b/Lib/test/test_sqlite.py
@@ -0,0 +1,16 @@
+from test.test_support import run_unittest, TestSkipped
+import unittest
+
+try:
+ import _sqlite3
+except ImportError:
+ raise TestSkipped('no sqlite available')
+from sqlite3.test import (dbapi, types, userfunctions,
+ factory, transactions)
+
+def test_main():
+ run_unittest(dbapi.suite(), types.suite(), userfunctions.suite(),
+ factory.suite(), transactions.suite())
+
+if __name__ == "__main__":
+ test_main()