[Checkins] SVN: zope.location/trunk/src/zope/location/tests.py actually made the zcml test conditional on whether zope.configuration is available
Thomas Lotze
tl at gocept.com
Sun Sep 19 05:58:24 EDT 2010
Log message for revision 116624:
actually made the zcml test conditional on whether zope.configuration is available
Changed:
U zope.location/trunk/src/zope/location/tests.py
-=-
Modified: zope.location/trunk/src/zope/location/tests.py
===================================================================
--- zope.location/trunk/src/zope/location/tests.py 2010-09-19 09:51:50 UTC (rev 116623)
+++ zope.location/trunk/src/zope/location/tests.py 2010-09-19 09:58:24 UTC (rev 116624)
@@ -19,8 +19,16 @@
def test_suite():
- return unittest.TestSuite((
+ suite = unittest.TestSuite((
doctest.DocFileSuite('location.txt'),
- doctest.DocFileSuite('configure.txt'),
doctest.DocTestSuite('zope.location.traversing'),
))
+
+ try:
+ import zope.configuration
+ except ImportError:
+ pass
+ else:
+ suite.addTest(doctest.DocFileSuite('configure.txt'))
+
+ return suite
More information about the checkins
mailing list