[Erp5-report] r18640 - /erp5/trunk/products/ERP5/tests/testXHTML.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jan 9 14:21:13 CET 2008
Author: yusei
Date: Wed Jan 9 14:21:12 2008
New Revision: 18640
URL: http://svn.erp5.org?rev=18640&view=rev
Log:
Skip xhtml tests when tidy is not installed.
Modified:
erp5/trunk/products/ERP5/tests/testXHTML.py
Modified: erp5/trunk/products/ERP5/tests/testXHTML.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/tests/testXHTML.py?rev=18640&r1=18639&r2=18640&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testXHTML.py (original)
+++ erp5/trunk/products/ERP5/tests/testXHTML.py Wed Jan 9 14:21:12 2008
@@ -195,7 +195,11 @@
method_name = 'test%s%s' % (portal_type, view_name)
setattr(TestXHTML, method_name, method)
-addTestMethodDynamically()
+# tidy may not be installed in livecd. Then we will skip xhtml validation tests.
+if not os.path.exists('/usr/bin/tidy'):
+ print '*** tidy is not installed at /usr/bin/tidy ***'
+else:
+ addTestMethodDynamically()
def test_suite():
suite = unittest.TestSuite()
More information about the Erp5-report
mailing list