[Zope3-checkins] CVS: Zope3/lib/python/BDBStorage/tests - __init__.py:1.3

Barry Warsaw barry@wooz.org
Thu, 19 Dec 2002 12:20:10 -0500


Update of /cvs-repository/Zope3/lib/python/BDBStorage/tests
In directory cvs.zope.org:/tmp/cvs-serv307

Modified Files:
	__init__.py 
Log Message:
If the required module bsddb3 isn't available, raise a RuntimeError
skip these tests.



=== Zope3/lib/python/BDBStorage/tests/__init__.py 1.2 => 1.3 ===
--- Zope3/lib/python/BDBStorage/tests/__init__.py:1.2	Mon Feb 11 18:40:43 2002
+++ Zope3/lib/python/BDBStorage/tests/__init__.py	Thu Dec 19 12:20:09 2002
@@ -11,3 +11,10 @@
 # FOR A PARTICULAR PURPOSE
 # 
 ##############################################################################
+
+# Don't run the tests in this package if this dependent module isn't
+# available.  test.py knows to catch RuntimeErrors.
+try:
+    import bsddb3
+except ImportError:
+    raise RuntimeError, 'required bsddb3 module is not available'