CVS: Products/Basket/tests - testBasket.py:1.44

Rocky Burt <[email protected]> Mon, 12 Dec 2005 10:48:47 -0500 (EST)
Newsgroups gmane.comp.web.zope.public-cvs
Message-ID <[email protected]>
Update of /cvs-repository/Products/Basket/tests
In directory cvs.zope.org:/tmp/cvs-serv18594/tests

Modified Files:
	testBasket.py 
Log Message:
Put a check in place for test_directoryview so that it doesn't bother trying to test if CMF is not available.


=== Products/Basket/tests/testBasket.py 1.43 => 1.44 ===
--- Products/Basket/tests/testBasket.py:1.43	Tue Dec  6 16:46:16 2005
+++ Products/Basket/tests/testBasket.py	Mon Dec 12 10:48:46 2005
@@ -210,6 +210,12 @@
         self.assertEqual(expected[0], 'external method')
         
     def test_directoryview(self):
+        try:
+            from Products.CMFCore.TypesTool import TypesTool
+        except ImportError, e:
+            # don't continue trying to test CMF stuff
+            return
+        
         basket = self._makeOne()
         basket.preinitialized = False
         basket.pdist_fname = os.path.join(self.fixtures,

_______________________________________________
Zope-CVS maillist  -  [email protected]
http://mail.zope.org/mailman/listinfo/zope-cvs

Zope CVS instructions: http://dev.zope.org/CVS