1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- # Placeholder for internal Python strict compatibility macro.
16- load ("//devtools/python/blaze:python3.bzl" , "py2and3_strict_test" )
15+ # Placeholder for internal Python strict & test compatibility macro.
1716
1817# Description:
1918# Build rules for libraries and ops in Neural Structured Learning.
@@ -60,11 +59,10 @@ py_library(
6059 ],
6160)
6261
63- py2and3_strict_test (
62+ py_test (
6463 name = "adversarial_neighbor_test" ,
6564 srcs = ["adversarial_neighbor_test.py" ],
66- python_version = "PY3" ,
67- srcs_version = "PY2AND3" ,
65+ srcs_version = "PY3" ,
6866 deps = [
6967 ":adversarial_neighbor" ,
7068 # package absl/testing:parameterized
@@ -85,11 +83,10 @@ py_library(
8583 ],
8684)
8785
88- py2and3_strict_test (
86+ py_test (
8987 name = "distances_test" ,
9088 srcs = ["distances_test.py" ],
91- python_version = "PY3" ,
92- srcs_version = "PY2AND3" ,
89+ srcs_version = "PY3" ,
9390 deps = [
9491 ":distances" ,
9592 "//neural_structured_learning/configs" ,
@@ -109,11 +106,10 @@ py_library(
109106 ],
110107)
111108
112- py2and3_strict_test (
109+ py_test (
113110 name = "regularizer_test" ,
114111 srcs = ["regularizer_test.py" ],
115- python_version = "PY3" ,
116- srcs_version = "PY2AND3" ,
112+ srcs_version = "PY3" ,
117113 deps = [
118114 ":regularizer" ,
119115 "//neural_structured_learning/configs" ,
@@ -133,12 +129,11 @@ py_library(
133129 ],
134130)
135131
136- py2and3_strict_test (
132+ py_test (
137133 name = "utils_test" ,
138134 size = "small" ,
139135 srcs = ["utils_test.py" ],
140- python_version = "PY3" ,
141- srcs_version = "PY2AND3" ,
136+ srcs_version = "PY3" ,
142137 deps = [
143138 ":utils" ,
144139 # package absl/testing:parameterized
0 commit comments