diff --git a/product/ERP5OOo/tests/utils.py b/product/ERP5OOo/tests/utils.py
index 9c246f9c51c07f1fb75480081fe4e890781836eb..61bddc083bbf78d7f393ec09532dbc335075ba0d 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)]