diff --git a/product/ERP5Catalog/tests/testERP5Catalog.py b/product/ERP5Catalog/tests/testERP5Catalog.py
index 2a01e105cf23ddc29810c61fed70611ac0c58207..35fa9291bddfd027b096b44f1b02f0a7a793b714 100644
--- a/product/ERP5Catalog/tests/testERP5Catalog.py
+++ b/product/ERP5Catalog/tests/testERP5Catalog.py
@@ -2351,10 +2351,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
                                         operator='AND')
     self.assertEqual(len(catalog(query=query_find_name_erp5)), 2)
 
-    self.assertRaises(NotImplementedError,
-                      lambda : ComplexQuery(query_find_european,
-                                            query_find_name_erp5,
-                                            operator='OR'))
+    self.assertRaises(NotImplementedError, ComplexQuery, query_find_european, query_find_name_erp5, operator='OR')
  
   def test_check_security_table_content(self, quiet=quiet, run=run_all_test):
     sql_connection = self.getSQLConnection()