[Python-checkins] r43451 - in python/branches/sqlite-integration/Lib: db/sqlite/test test/regrtest.py test/test_sqlite.py

anthony.baxter python-checkins at python.org
Thu Mar 30 13:51:54 CEST 2006


Author: anthony.baxter
Date: Thu Mar 30 13:51:54 2006
New Revision: 43451
Modified:
 python/branches/sqlite-integration/Lib/db/sqlite/test/ (props changed)
 python/branches/sqlite-integration/Lib/test/regrtest.py
 python/branches/sqlite-integration/Lib/test/test_sqlite.py
Log:
handle missing sqlite in tests
Modified: python/branches/sqlite-integration/Lib/test/regrtest.py
==============================================================================
--- python/branches/sqlite-integration/Lib/test/regrtest.py	(original)
+++ python/branches/sqlite-integration/Lib/test/regrtest.py	Thu Mar 30 13:51:54 2006
@@ -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
Modified: python/branches/sqlite-integration/Lib/test/test_sqlite.py
==============================================================================
--- python/branches/sqlite-integration/Lib/test/test_sqlite.py	(original)
+++ python/branches/sqlite-integration/Lib/test/test_sqlite.py	Thu Mar 30 13:51:54 2006
@@ -1,4 +1,9 @@
 import unittest
+try:
+ import _sqlite
+except ImportError:
+ from test.test_support import TestSkipped
+ raise TestSkipped('no sqlite available')
 from db.sqlite.test import (dbapi, types, userfunctions, 
 factory, transactions)
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /