• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2023 gRPC authors.
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
6#
7#     http://www.apache.org/licenses/LICENSE-2.0
8#
9# Unless required by applicable law or agreed to in writing, software
10# distributed under the License is distributed on an "AS IS" BASIS,
11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12# See the License for the specific language governing permissions and
13# limitations under the License.
14load("//bazel:cython_library.bzl", "pyx_library")
15
16pyx_library(
17    name = "native_debug",
18    srcs = ["native_debug.pyx"],
19    deps = ["@com_google_absl//absl/debugging:failure_signal_handler"],
20)
21
22py_test(
23    name = "fork_test",
24    srcs = glob(["*.py"]),
25    # TODO(yijiem): remove this to test EventEngine fork support
26    env = {"GRPC_EXPERIMENTS": "-event_engine_client"},
27    imports = ["../.."],
28    main = "_fork_interop_test.py",
29    python_version = "PY3",
30    deps = [
31        ":native_debug",
32        "//src/proto/grpc/testing:empty_py_pb2",
33        "//src/proto/grpc/testing:py_messages_proto",
34        "//src/proto/grpc/testing:test_py_pb2_grpc",
35        "//src/python/grpcio/grpc:grpcio",
36        "//src/python/grpcio_tests/tests/interop:service",
37        "//src/python/grpcio_tests/tests/unit:test_common",
38    ],
39)
40