File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323
2424from typeguard import install_import_hook
2525
26+ try :
27+ from tests import bazel_namespace_package_hack
28+
29+ bazel_namespace_package_hack .sys_path_to_site_dir_hack ()
30+ except Exception :
31+ pass
32+
2633
2734# AIO
2835install_import_hook ('grpc.aio' )
Original file line number Diff line number Diff line change @@ -20,5 +20,6 @@ py_library(
2020 "//examples/python/errors:__subpackages__" ,
2121 "//src/python/grpcio_tests/tests/interop:__subpackages__" ,
2222 "//src/python/grpcio_tests/tests/status:__subpackages__" ,
23+ "//src/python/grpcio_tests/tests_aio:__subpackages__" ,
2324 ],
2425)
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ py_library(
4545 "//src/proto/grpc/testing:py_messages_proto" ,
4646 "//src/proto/grpc/testing:test_py_pb2_grpc" ,
4747 "//src/python/grpcio/grpc:grpcio" ,
48+ "//src/python/grpcio_tests/tests:bazel_namespace_package_hack" ,
4849 "//src/python/grpcio_tests/tests/unit:resources" ,
4950 ],
5051)
Original file line number Diff line number Diff line change 2020import grpc
2121from grpc .experimental import aio
2222
23+ from tests import bazel_namespace_package_hack
24+
25+ bazel_namespace_package_hack .sys_path_to_site_dir_hack ()
26+
2327from src .proto .grpc .testing import empty_pb2
2428from src .proto .grpc .testing import messages_pb2
2529from src .proto .grpc .testing import test_pb2_grpc
You can’t perform that action at this time.
0 commit comments