From 29fdcfaf1ce5317a49f5042dabebd9995c5222ac Mon Sep 17 00:00:00 2001
From: Jean-Paul Smets <jp@nexedi.com>
Date: Thu, 8 Apr 2004 20:54:04 +0000
Subject: [PATCH] fixed import issue in ERP5Type Document repository

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@657 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/ERP5TypeTestCase.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py
index f725cc265dc..20b5d665491 100755
--- a/product/ERP5Type/tests/ERP5TypeTestCase.py
+++ b/product/ERP5Type/tests/ERP5TypeTestCase.py
@@ -50,6 +50,10 @@ ZopeTestCase.installProduct('CMFActivity')
 ZopeTestCase.installProduct('ERP5SyncML')
 ZopeTestCase.installProduct('ERP5') # Not needed by ERP5Type
 
+# Install Document types (circumvent different init order in ZopeTestCase)
+from Products.ERP5Type.InitGenerator import initializeProductDocumentRegistry
+initializeProductDocumentRegistry()
+
 from AccessControl.SecurityManagement import newSecurityManager, noSecurityManager
 from AccessControl.User import User
 
-- 
2.30.9