diff --git a/product/ERP5OOo/tests/testOOoImport.py b/product/ERP5OOo/tests/testOOoImport.py
index 05edee87237d563691f15a41ba41bc2072d0ae2b..b7a649f8562c353bbede6e586d28689224423043 100644
--- a/product/ERP5OOo/tests/testOOoImport.py
+++ b/product/ERP5OOo/tests/testOOoImport.py
@@ -109,9 +109,9 @@ class TestOOoImportMixin(ERP5TypeTestCase):
   def beforeTearDown(self):
     transaction.abort()
     for parent in [
-        self.portal.portal_categories.region,
-        self.portal.portal_categories.gender,
         self.portal.portal_categories.function,
+        self.portal.portal_categories.gender,
+        self.portal.portal_categories.region,
         ]:
       parent.deleteContent(list(parent.objectIds()))
     self.portal.portal_preferences.manage_delObjects([self.pref.getId()])