diff --git a/tools/run_tests/sanity/check_bazel_workspace.py b/tools/run_tests/sanity/check_bazel_workspace.py index 612f908bbfe..fa1ae2574fb 100755 --- a/tools/run_tests/sanity/check_bazel_workspace.py +++ b/tools/run_tests/sanity/check_bazel_workspace.py @@ -132,7 +132,7 @@ build_rules = { 'load': lambda a, b: None, 'git_repository': lambda **args: eval_state.git_repository(**args), } -exec(bazel_file in build_rules) +exec (bazel_file) in build_rules for name in _GRPC_DEP_NAMES: assert name in names_and_urls.keys() assert len(_GRPC_DEP_NAMES) == len(names_and_urls.keys()) @@ -174,7 +174,7 @@ for name in _GRPC_DEP_NAMES: 'load': lambda a, b: None, 'git_repository': lambda **args: state.git_repository(**args), } - exec(bazel_file in rules) + exec (bazel_file) in rules assert name not in names_and_urls_with_overridden_name.keys() sys.exit(0)