diff --git a/product/ERP5/tests/testCRM.py b/product/ERP5/tests/testCRM.py
index a458d2811cf78dfc802ee86ab5cb7f736fc336cf..58d13d9d775a15c046d00f587766e3a15c14465f 100644
--- a/product/ERP5/tests/testCRM.py
+++ b/product/ERP5/tests/testCRM.py
@@ -177,15 +177,6 @@ class TestCRMMailIngestion(ERP5TypeTestCase):
   def afterSetUp(self):
     portal = self.portal
 
-    # XXX do this in ERP5Site.py ?
-    # sets up content type registry
-    ctr = self.portal.content_type_registry
-    if ctr.getPredicate('mail_message') is None:
-      ctr.addPredicate('mail_message', 'extension')
-    ctr.getPredicate('mail_message').edit(extensions='eml')
-    ctr.assignTypeName('mail_message', 'Mail Message')
-    ctr.reorderPredicate('mail_message', 0)
-
     # create customer organisation and person
     if 'customer' not in portal.organisation_module.objectIds():
       portal.organisation_module.newContent(