diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py index 510c0e6ee78287585484a368b0acb3d1c0a5851c..cf3b761b753db9301b07450b8045c6f8531561da 100644 --- a/product/ERP5/tests/testXHTML.py +++ b/product/ERP5/tests/testXHTML.py @@ -195,7 +195,11 @@ def addTestMethodDynamically(): 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()