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 for test_file_name in GRPCIO_TESTS_UNIT
] ]

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

Loading…
Cancel
Save