pull/21504/head
Richard Belleville 5 years ago
parent 467bc90a6f
commit 87b50e08b9
  1. 2
      tools/distrib/python/grpcio_tools/grpc_tools/main.cc
  2. 2
      tools/distrib/python/grpcio_tools/grpc_tools/protoc_test.py

@ -51,7 +51,7 @@ int protoc_main(int argc, char* argv[]) {
return cli.Run(argc, argv); return cli.Run(argc, argv);
} }
// TODO: Figure out what Google best practices are for internal namespace like // TODO: Figure out what Google best practices are for internal namespaces like
// this. // this.
namespace detail { namespace detail {

@ -19,6 +19,7 @@ def _wrap_in_subprocess(error_queue, fn):
raise raise
return _wrapped return _wrapped
def _run_in_subprocess(test_case): def _run_in_subprocess(test_case):
error_queue = multiprocessing.Queue() error_queue = multiprocessing.Queue()
wrapped_case = _wrap_in_subprocess(error_queue, test_case) wrapped_case = _wrap_in_subprocess(error_queue, test_case)
@ -29,6 +30,7 @@ def _run_in_subprocess(test_case):
raise error_queue.get() raise error_queue.get()
assert proc.exitcode == 0, "Process exited with code {}".format(proc.exitcode) assert proc.exitcode == 0, "Process exited with code {}".format(proc.exitcode)
def _test_import_protos(): def _test_import_protos():
from grpc_tools import protoc from grpc_tools import protoc
proto_path = "tools/distrib/python/grpcio_tools/" proto_path = "tools/distrib/python/grpcio_tools/"

Loading…
Cancel
Save