Commit 2d070158 authored by Yusei Tahara's avatar Yusei Tahara

Raise error when tidy is not installed yet.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18624 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6e6a384c
......@@ -134,6 +134,8 @@ class TestXHTML(ERP5TypeTestCase):
def validate_xhtml(source):
import popen2
if not os.path.exists('/usr/bin/tidy'):
raise IOError, 'tidy is not installed at /usr/bin/tidy'
stdout, stdin, stderr = popen2.popen3('/usr/bin/tidy -e -q -utf8')
stdin.write(source)
stdin.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment