[Erp5-report] r18624 - /erp5/trunk/products/ERP5/tests/testXHTML.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Jan 7 19:17:49 CET 2008
Author: yusei
Date: Mon Jan 7 19:17:48 2008
New Revision: 18624
URL: http://svn.erp5.org?rev=18624&view=rev
Log:
Raise error when tidy is not installed yet.
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=18624&r1=18623&r2=18624&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/tests/testXHTML.py (original)
+++ erp5/trunk/products/ERP5/tests/testXHTML.py Mon Jan 7 19:17:48 2008
@@ -134,6 +134,8 @@
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()
More information about the Erp5-report
mailing list