[Zodb-checkins] CVS: Zope3/lib/python/ZODB/tests - testStorageConfig.py:1.3

Guido van Rossum guido@python.org
Sat, 23 Nov 2002 03:14:05 -0500


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

Modified Files:
	testStorageConfig.py 
Log Message:
Make sure testZEOStorage() doesn't break if ZEO can't be imported.


=== Zope3/lib/python/ZODB/tests/testStorageConfig.py 1.2 => 1.3 ===
--- Zope3/lib/python/ZODB/tests/testStorageConfig.py:1.2	Sat Nov 23 02:59:55 2002
+++ Zope3/lib/python/ZODB/tests/testStorageConfig.py	Sat Nov 23 03:14:04 2002
@@ -52,7 +52,10 @@
         self.assert_(isinstance(self.storage, FileStorage))
 
     def testZEOStorage(self):
-        from ZEO.ClientStorage import ClientStorage
+        try:
+            from ZEO.ClientStorage import ClientStorage
+        except ImportError:
+            return
         sample = """
         <Storage>
         type       ClientStorage