pull/21954/head
Richard Belleville 5 years ago
parent 78c9ce56e5
commit 94efe57fb0
  1. 1
      src/python/grpcio_tests/tests/unit/BUILD.bazel
  2. 39
      src/python/grpcio_tests/tests/unit/py3_only/BUILD.bazel

@ -110,4 +110,3 @@ py_library(
)
for test_file_name in GRPCIO_TESTS_UNIT
]

@ -1,6 +1,6 @@
package(
default_visibility = ["//visibility:public"],
default_testonly = True,
default_testonly = True,
default_visibility = ["//visibility:public"],
)
GRPCIO_PY3_ONLY_UNIT_TESTS = [
@ -8,21 +8,22 @@ GRPCIO_PY3_ONLY_UNIT_TESTS = [
]
[
py_test(
name = test_file_name[:-len(".py")],
size = "small",
python_version = "PY3",
srcs_version = "PY3",
srcs = [test_file_name],
main = test_file_name,
deps = [
"//src/python/grpcio_tests/tests/unit:resources",
"//src/python/grpcio_tests/tests/unit:test_common",
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/testing",
"//src/python/grpcio_tests/tests/unit/framework/common",
"@six",
],
imports = [".."],
) for test_file_name in GRPCIO_PY3_ONLY_UNIT_TESTS
py_test(
name = test_file_name[:-len(".py")],
size = "small",
srcs = [test_file_name],
imports = [".."],
main = test_file_name,
python_version = "PY3",
srcs_version = "PY3",
deps = [
"//src/python/grpcio/grpc:grpcio",
"//src/python/grpcio_tests/tests/testing",
"//src/python/grpcio_tests/tests/unit:resources",
"//src/python/grpcio_tests/tests/unit:test_common",
"//src/python/grpcio_tests/tests/unit/framework/common",
"@six",
],
)
for test_file_name in GRPCIO_PY3_ONLY_UNIT_TESTS
]

Loading…
Cancel
Save