From 77fe416598a7872f965fb92c106dce9d937163fc Mon Sep 17 00:00:00 2001 From: Leonardo Rochael Almeida <leonardo@nexedi.com> Date: Thu, 18 Feb 2010 17:17:03 +0000 Subject: [PATCH] avoid waking up invalid objects after an abort git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@32808 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/ERP5TypeTestCase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product/ERP5Type/tests/ERP5TypeTestCase.py b/product/ERP5Type/tests/ERP5TypeTestCase.py index 16b853ad8b..a3b3267848 100644 --- a/product/ERP5Type/tests/ERP5TypeTestCase.py +++ b/product/ERP5Type/tests/ERP5TypeTestCase.py @@ -297,6 +297,7 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase): # FIXME: Try not to run this call below so often by moving it somewhere # where it is called exactly once per test. portal.setupCurrentSkin(portal.REQUEST) + self.REQUEST = portal.REQUEST return portal getPortalObject = getPortal @@ -339,7 +340,7 @@ class ERP5TypeTestCase(backportUnittest.TestCase, PortalTestCase): # clean up certain cache related REQUEST keys that might be associated # with the logged in user for key in ('_ec_cache', '_oai_cache'): - self.portal.REQUEST.other.pop(key, None) + self.REQUEST.other.pop(key, None) def _setupUser(self): '''Creates the default user.''' -- 2.30.9