From 95dd164063c30c178e9a99d6ae4cf3b247ac6b2f Mon Sep 17 00:00:00 2001
From: Julien Muchembled <jm@nexedi.com>
Date: Fri, 28 May 2010 09:35:21 +0000
Subject: [PATCH] Fix test_167_InstanceAndRelatedClassDefinedInSameBT

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35709 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/tests/testBusinessTemplate.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/product/ERP5/tests/testBusinessTemplate.py b/product/ERP5/tests/testBusinessTemplate.py
index 3271d3be6d..4768de7563 100644
--- a/product/ERP5/tests/testBusinessTemplate.py
+++ b/product/ERP5/tests/testBusinessTemplate.py
@@ -6451,6 +6451,9 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
       portal._setObject('another_file', File('another_file'))
       transaction.commit()
       self.tic()
+      # logged errors could keep a reference to a traceback having a reference
+      # to 'another_file' object
+      del self.logged[:]
       # check its class has not yet been overriden
       self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False))
       for i in xrange(6):
-- 
2.30.9