Commit 674d1243 authored by Julien Muchembled's avatar Julien Muchembled

TestBusinessTemplate: fix cleaning of logged errors when there is none

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41152 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 7aa2de40
...@@ -6761,7 +6761,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor): ...@@ -6761,7 +6761,7 @@ class TestBusinessTemplate(ERP5TypeTestCase, LogInterceptor):
self.tic() self.tic()
# logged errors could keep a reference to a traceback having a reference # logged errors could keep a reference to a traceback having a reference
# to 'another_file' object # to 'another_file' object
del self.logged[:] self.logged = []
# check its class has not yet been overriden # check its class has not yet been overriden
self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False)) self.assertFalse(getattr(portal.another_file, 'isClassOverriden', False))
for i in (0, 1): for i in (0, 1):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment