From 99fe51b4293659fd2d0e4f8aa6e8d21a44e317bd Mon Sep 17 00:00:00 2001 From: Yusei Tahara <yusei@nexedi.com> Date: Fri, 21 Dec 2007 14:03:06 +0000 Subject: [PATCH] catch warning message as failure. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18473 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5/tests/testXHTML.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/product/ERP5/tests/testXHTML.py b/product/ERP5/tests/testXHTML.py index a30406d70a..f89eb7ec33 100644 --- a/product/ERP5/tests/testXHTML.py +++ b/product/ERP5/tests/testXHTML.py @@ -142,6 +142,8 @@ def validate_xhtml(source): if len(data) >= 2: if data[1].startswith('Error: '): return False + elif data[1].startswith('Warning: '): + return False return True -- 2.30.9