diff --git a/src/python/grpcio_tests/tests/unit/BUILD.bazel b/src/python/grpcio_tests/tests/unit/BUILD.bazel index 75085e9091b..42b99023463 100644 --- a/src/python/grpcio_tests/tests/unit/BUILD.bazel +++ b/src/python/grpcio_tests/tests/unit/BUILD.bazel @@ -110,4 +110,3 @@ py_library( ) for test_file_name in GRPCIO_TESTS_UNIT ] - diff --git a/src/python/grpcio_tests/tests/unit/py3_only/BUILD.bazel b/src/python/grpcio_tests/tests/unit/py3_only/BUILD.bazel index 5cdfed647e5..7f1a013364a 100644 --- a/src/python/grpcio_tests/tests/unit/py3_only/BUILD.bazel +++ b/src/python/grpcio_tests/tests/unit/py3_only/BUILD.bazel @@ -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 ]