diff --git a/tools/build_mocks b/tools/build_mocks index 8d8be8371..4fd9e061f 100755 --- a/tools/build_mocks +++ b/tools/build_mocks @@ -14,6 +14,11 @@ def split_to_parts(line, mod_desc=None): global current_class global current_method + if line.startswith("# mock:global"): + current_class = None + current_indent = 0 + return + if line.startswith("class "): current_class = line[6:].split("(")[0].strip(":") current_indent = 0