diff --git a/product/ERP5Form/tests/testPreferences.py b/product/ERP5Form/tests/testPreferences.py
index d6e82539663fe485ae23fbcb8a1cc2d4b2ac3fca..23a1f6773236ee37d9c0144478d02fa8ee4db873 100644
--- a/product/ERP5Form/tests/testPreferences.py
+++ b/product/ERP5Form/tests/testPreferences.py
@@ -478,8 +478,11 @@ class TestPreferences(ERP5TypeTestCase):
     self.assertEquals(['this_is_system'],
                       preference_tool.getPreferredAccountingTransactionSimulationStateList())
 
-    # check a user can't edit preference which are marked for manager
-    self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost")
+    # check a user can't edit preference which are marked for manager (only for zope2.8)
+    try:
+      from ZODB.Transaction import Transaction
+    except ImportError:      
+      self.assertRaises(Unauthorized, user_pref.edit, preferred_ooodoc_server_address="localhost")