[Erp5-report] r36848 jerome - /erp5/trunk/products/ERP5OOo/tests/utils.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 5 10:34:09 CEST 2010


Author: jerome
Date: Mon Jul  5 10:34:08 2010
New Revision: 36848

URL: http://svn.erp5.org?rev=36848&view=rev
Log:
set URL to the name of the file, to have it included in error message

Modified:
    erp5/trunk/products/ERP5OOo/tests/utils.py

Modified: erp5/trunk/products/ERP5OOo/tests/utils.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5OOo/tests/utils.py?rev=36848&r1=36847&r2=36848&view=diff
==============================================================================
--- erp5/trunk/products/ERP5OOo/tests/utils.py [utf8] (original)
+++ erp5/trunk/products/ERP5OOo/tests/utils.py [utf8] Mon Jul  5 10:34:08 2010
@@ -72,6 +72,7 @@ if lxml:
     def _validateXML(self, odf_file, content_file_name):
       zfd = zipfile.ZipFile(odf_file)
       doc = lxml.etree.parse(StringIO(zfd.read(content_file_name)))
+      doc.docinfo.URL = content_file_name
       self.relaxng.validate(doc)
       return [error for error in str(self.relaxng.error_log).splitlines(True)]
 




More information about the Erp5-report mailing list