Explicitly set broken test targets to "PY2".

PiperOrigin-RevId: 286208460
Change-Id: I183a7887bf3a5ba32bf60e43c6c13fb7a1992c0e
This commit is contained in:
Guangda Lai 2019-12-18 09:35:31 -08:00 committed by TensorFlower Gardener
parent 6103719ffa
commit 535dfd7f7a
3 changed files with 21 additions and 0 deletions

View File

@ -10,6 +10,7 @@ exports_files(["LICENSE"])
tf_py_test(
name = "meta_benchmark",
srcs = ["meta_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:session",
@ -34,6 +35,7 @@ py_library(
tf_py_test(
name = "batch_benchmark",
srcs = ["batch_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python:sparse_tensor",
@ -45,6 +47,7 @@ tf_py_test(
tf_py_test(
name = "filter_benchmark",
srcs = ["filter_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python/data/ops:dataset_ops",
@ -54,6 +57,7 @@ tf_py_test(
tf_py_test(
name = "from_tensor_slices_benchmark",
srcs = ["from_tensor_slices_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python/data/ops:dataset_ops",
@ -64,6 +68,7 @@ tf_py_test(
tf_py_test(
name = "list_files_benchmark",
srcs = ["list_files_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python:client_testlib",
@ -78,6 +83,7 @@ tf_py_test(
tf_py_test(
name = "map_benchmark",
srcs = ["map_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python/data/ops:dataset_ops",
@ -87,6 +93,7 @@ tf_py_test(
tf_py_test(
name = "range_benchmark",
srcs = ["range_benchmark.py"],
python_version = "PY2",
deps = [
":benchmark_base",
"//tensorflow/python/data/ops:dataset_ops",

View File

@ -15,6 +15,7 @@ exports_files(
tf_py_test(
name = "autotune_benchmark",
srcs = ["autotune_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:math_ops",
@ -27,6 +28,7 @@ tf_py_test(
tf_py_test(
name = "choose_fastest_benchmark",
srcs = ["choose_fastest_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_ops",
@ -55,6 +57,7 @@ tf_py_test(
tf_py_test(
name = "csv_dataset_benchmark",
srcs = ["csv_dataset_benchmark.py"],
python_version = "PY2",
tags = ["no_pip"],
deps = [
"//tensorflow/python:client_testlib",
@ -71,6 +74,7 @@ tf_py_test(
tf_py_test(
name = "map_and_batch_benchmark",
srcs = ["map_and_batch_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
@ -89,6 +93,7 @@ tf_py_test(
tf_py_test(
name = "map_defun_benchmark",
srcs = ["map_defun_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
@ -104,6 +109,7 @@ tf_py_test(
tf_py_test(
name = "map_vectorization_benchmark",
srcs = ["map_vectorization_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/core:protos_all_py",
"//tensorflow/python:array_ops",
@ -123,6 +129,7 @@ tf_py_test(
name = "matching_files_benchmark",
size = "small",
srcs = ["matching_files_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
@ -138,6 +145,7 @@ tf_py_test(
tf_py_test(
name = "optimize_benchmark",
srcs = ["optimize_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_ops",
@ -151,6 +159,7 @@ tf_py_test(
tf_py_test(
name = "parallel_interleave_benchmark",
srcs = ["parallel_interleave_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:math_ops",
@ -165,6 +174,7 @@ tf_py_test(
tf_py_test(
name = "rejection_resample_benchmark",
srcs = ["rejection_resample_benchmark.py"],
python_version = "PY2",
tags = ["no_pip"],
deps = [
"//tensorflow/python:client_testlib",
@ -178,6 +188,7 @@ tf_py_test(
tf_py_test(
name = "snapshot_dataset_benchmark",
srcs = ["snapshot_dataset_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",
@ -196,6 +207,7 @@ tf_py_test(
tf_py_test(
name = "unbatch_benchmark",
srcs = ["unbatch_benchmark.py"],
python_version = "PY2",
deps = [
"//tensorflow/python:array_ops",
"//tensorflow/python:client_testlib",

View File

@ -385,6 +385,7 @@ tf_py_test(
name = "decode_jpeg_op_test",
srcs = ["decode_jpeg_op_test.py"],
data = ["//tensorflow/core:image_testdata"],
python_version = "PY2",
deps = [
"//tensorflow/python:client_testlib",
"//tensorflow/python:framework_for_generated_wrappers",
@ -1757,6 +1758,7 @@ cuda_py_test(
name = "control_flow_ops_py_test",
size = "small",
srcs = ["control_flow_ops_py_test.py"],
python_version = "PY2",
shard_count = 16,
tags = [
"notsan", # TODO(b/132205147): Re-enable this.