[Zope-CVS] CVS: Products/Basket/tests - testBasket.py:1.44
Rocky Burt
rocky at serverzen.com
Mon Dec 12 10:48:47 EST 2005
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,
More information about the Zope-CVS
mailing list