diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py
index d76666fb5dee3a6f4dd90b717db2645741109696..843258df8f5649d4f20e235a0175885ffa3510ad 100644
--- a/product/ERP5Type/tests/ERP5TypeTestCase.py
+++ b/product/ERP5Type/tests/ERP5TypeTestCase.py
@@ -566,9 +566,12 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase):
       """Update conversion server (Oood) at default site preferences.
       """
       conversion_dict = _getConversionServerDict()
-      preference = self.portal.portal_preferences.default_site_preference
-      preference.setPreferredOoodocServerAddress(conversion_dict['hostname'])
-      preference.setPreferredOoodocServerPortNumber(conversion_dict['port'])
+
+      preference = getattr(self.portal.portal_preferences, 
+                           'default_site_preference', None)
+      if preference is not None:
+        preference.setPreferredOoodocServerAddress(conversion_dict['hostname'])
+        preference.setPreferredOoodocServerPortNumber(conversion_dict['port'])
 
     def _recreateCatalog(self, quiet=0):
       """Clear activities and catalog and recatalog everything.