From 626460bfbe614265141579a2dd554d1c933d4dd3 Mon Sep 17 00:00:00 2001
From: Fabien Morin <fabien@nexedi.com>
Date: Tue, 11 Nov 2008 15:16:59 +0000
Subject: [PATCH] setSecurityManager even if the user has the permission

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@24553 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5Type/tests/SecurityTestCase.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/product/ERP5Type/tests/SecurityTestCase.py b/product/ERP5Type/tests/SecurityTestCase.py
index 102ebdcebc..bef92dfe59 100644
--- a/product/ERP5Type/tests/SecurityTestCase.py
+++ b/product/ERP5Type/tests/SecurityTestCase.py
@@ -104,7 +104,7 @@ class AssertNoPermissionMethod(object):
           'User %s has %s permission on %s %s (roles: [%s])' %
           (username, self._permission_name, document.getPortalTypeName(),
             document, ', '.join(user.getRolesInContext(document))))
-    except:
+    finally:
       setSecurityManager(sm)
 
 
-- 
2.30.9