From f643bb615ca54b67b14d98a6ca4645c2ed207182 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Mon, 5 Jul 2010 08:34:08 +0000
Subject: [PATCH] set URL to the name of the file, to have it included in error
 message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36848 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5OOo/tests/utils.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/product/ERP5OOo/tests/utils.py b/product/ERP5OOo/tests/utils.py
index 9c246f9c51..61bddc083b 100644
--- a/product/ERP5OOo/tests/utils.py
+++ b/product/ERP5OOo/tests/utils.py
@@ -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)]
 
-- 
2.30.9