diff --git a/odoo/addons/base/tests/test_profiler.py b/odoo/addons/base/tests/test_profiler.py index fc5207fa453..f04c8e40101 100644 --- a/odoo/addons/base/tests/test_profiler.py +++ b/odoo/addons/base/tests/test_profiler.py @@ -437,7 +437,7 @@ class TestProfiling(TransactionCase): # map stack frames to their function name, and check stacks_methods = [[frame[2] for frame in stack] for stack in stacks] - self.assertEqual(stacks_methods, [ + self.assertEqual(stacks_methods[:-2], [ ['a'], ['a', 'b'], ['a'], @@ -448,8 +448,6 @@ class TestProfiling(TransactionCase): ['a', 'c'], ['a'], [], - ['__exit__'], - ['__exit__', 'stop'] # could be removed by cleaning two last frames, or removing last frames only contained in profiler.py ]) # map stack frames to their line number, and check