From 6ab28eafa9ae37b0c4d739d81d05206832e820c1 Mon Sep 17 00:00:00 2001 From: ArmageddonKnight Date: Sat, 9 May 2020 18:30:45 -0400 Subject: [PATCH] Fix the syntax errors --- tests/python/unittest/test_memory_opt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/python/unittest/test_memory_opt.py b/tests/python/unittest/test_memory_opt.py index 0036732d0ffe..39ccae5ed08d 100644 --- a/tests/python/unittest/test_memory_opt.py +++ b/tests/python/unittest/test_memory_opt.py @@ -155,7 +155,7 @@ def grep_exec_memory_consumption(exec): import re # We will be using regular expressions for grepping the model # memory consumption. alloc_line_pattern = re.compile("Total \d+ MB allocated") - for line in exec_debug_str(): + for line in exec_debug_str: if alloc_line_pattern.match(line) is not None: return int(line.split()[1]) assert False, "Unable to gerp the memory consumption numbers from the executor " \