1313# limitations under the License.
1414
1515# Placeholder for internal Python strict compatibility macro.
16- # Placeholder for internal Python version compatibility macro.
16+ load ( "//devtools/python/blaze:python3.bzl" , "py2and3_strict_test" )
1717
1818# Description:
1919# Build rules for libraries and ops in Neural Structured Learning.
@@ -60,9 +60,10 @@ py_library(
6060 ],
6161)
6262
63- py_test (
63+ py2and3_strict_test (
6464 name = "adversarial_neighbor_test" ,
6565 srcs = ["adversarial_neighbor_test.py" ],
66+ python_version = "PY3" ,
6667 srcs_version = "PY2AND3" ,
6768 deps = [
6869 ":adversarial_neighbor" ,
@@ -84,9 +85,10 @@ py_library(
8485 ],
8586)
8687
87- py_test (
88+ py2and3_strict_test (
8889 name = "distances_test" ,
8990 srcs = ["distances_test.py" ],
91+ python_version = "PY3" ,
9092 srcs_version = "PY2AND3" ,
9193 deps = [
9294 ":distances" ,
@@ -107,9 +109,10 @@ py_library(
107109 ],
108110)
109111
110- py_test (
112+ py2and3_strict_test (
111113 name = "regularizer_test" ,
112114 srcs = ["regularizer_test.py" ],
115+ python_version = "PY3" ,
113116 srcs_version = "PY2AND3" ,
114117 deps = [
115118 ":regularizer" ,
@@ -130,10 +133,11 @@ py_library(
130133 ],
131134)
132135
133- py_test (
136+ py2and3_strict_test (
134137 name = "utils_test" ,
135138 size = "small" ,
136139 srcs = ["utils_test.py" ],
140+ python_version = "PY3" ,
137141 srcs_version = "PY2AND3" ,
138142 deps = [
139143 ":utils" ,
0 commit comments