diff options
author | Yilei Yang <yileiyang@google.com> | 2019-07-30 11:05:54 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2019-07-30 11:06:18 -0700 |
commit | b80c74fb6a95992e0af4b698ac9c9f822e050788 (patch) | |
tree | ffc714ec3399bdef7c781476bdbea26f1cd62c14 /absl/testing/BUILD | |
parent | 84984c1ece6b4e049a210e4b282a9742735d7997 (diff) | |
download | absl-py-b80c74fb6a95992e0af4b698ac9c9f822e050788.tar.gz |
Use a bazel macro py2and3_test to test both Python 2 and 3 versions.
This only affects how absl's own tests run under bazel, not the public absl libraries themselves nor absl-py PyPI package.
PiperOrigin-RevId: 260753751
Change-Id: I42145db91611ae762090026faf79d20c6c2ba9f2
Diffstat (limited to 'absl/testing/BUILD')
-rw-r--r-- | absl/testing/BUILD | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/absl/testing/BUILD b/absl/testing/BUILD index 5212f31..7ec501f 100644 --- a/absl/testing/BUILD +++ b/absl/testing/BUILD @@ -2,7 +2,7 @@ licenses(["notice"]) # Apache 2.0 exports_files(["LICENSE"]) -load("//absl:_build_defs.bzl", "py2py3_test_binary") +load("//absl:_build_defs.bzl", "py2py3_test_binary", "py2and3_test") py_library( name = "absltest", @@ -88,7 +88,7 @@ py_library( ], ) -py_test( +py2and3_test( name = "tests/absltest_filtering_test", size = "small", srcs = ["tests/absltest_filtering_test.py"], @@ -110,7 +110,7 @@ py2py3_test_binary( deps = [":absltest"], ) -py_test( +py2and3_test( name = "tests/absltest_randomization_test", size = "medium", srcs = ["tests/absltest_randomization_test.py"], @@ -134,7 +134,7 @@ py2py3_test_binary( ], ) -py_test( +py2and3_test( name = "tests/absltest_sharding_test", size = "small", srcs = ["tests/absltest_sharding_test.py"], @@ -155,7 +155,7 @@ py2py3_test_binary( deps = [":absltest"], ) -py_test( +py2and3_test( name = "tests/absltest_test", size = "small", srcs = ["tests/absltest_test.py"], @@ -181,7 +181,7 @@ py2py3_test_binary( ], ) -py_test( +py2and3_test( name = "tests/flagsaver_test", srcs = ["tests/flagsaver_test.py"], srcs_version = "PY2AND3", @@ -192,7 +192,7 @@ py_test( ], ) -py_test( +py2and3_test( name = "tests/parameterized_test", srcs = ["tests/parameterized_test.py"], srcs_version = "PY2AND3", @@ -204,7 +204,7 @@ py_test( ], ) -py_test( +py2and3_test( name = "tests/xml_reporter_test", srcs = ["tests/xml_reporter_test.py"], data = [":tests/xml_reporter_helper_test"], |