@@ -105,6 +105,10 @@ py_test(
105105 size = "small" ,
106106 srcs = ["metadata_test.py" ],
107107 main = "metadata_test.py" ,
108+ target_compatible_with = select ({
109+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
110+ "//conditions:default" : [],
111+ }),
108112 deps = [
109113 "metadata_py" ,
110114 "@flatbuffers//:runtime_py" ,
@@ -150,6 +154,10 @@ py_test(
150154 "nomsan" , # Sanitizer symbols don't work with Python extension libs
151155 "noubsan" ,
152156 ],
157+ target_compatible_with = select ({
158+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
159+ "//conditions:default" : [],
160+ }),
153161 deps = [
154162 ":compress" ,
155163 ":metadata_py" ,
@@ -176,6 +184,10 @@ py_test(
176184 name = "model_facade_test" ,
177185 size = "small" ,
178186 srcs = ["model_facade_test.py" ],
187+ target_compatible_with = select ({
188+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
189+ "//conditions:default" : [],
190+ }),
179191 deps = [
180192 ":model_facade" ,
181193 ":test_models" ,
@@ -195,6 +207,10 @@ py_test(
195207 name = "spec_test" ,
196208 size = "small" ,
197209 srcs = ["spec_test.py" ],
210+ target_compatible_with = select ({
211+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
212+ "//conditions:default" : [],
213+ }),
198214 deps = [
199215 ":spec" ,
200216 requirement ("tensorflow" ),
@@ -213,6 +229,10 @@ py_test(
213229 name = "spec_builder_test" ,
214230 size = "small" ,
215231 srcs = ["spec_builder_test.py" ],
232+ target_compatible_with = select ({
233+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
234+ "//conditions:default" : [],
235+ }),
216236 deps = [
217237 ":spec" ,
218238 ":spec_builder" ,
@@ -234,6 +254,10 @@ py_test(
234254 name = "test_models_test" ,
235255 size = "small" ,
236256 srcs = ["test_models_test.py" ],
257+ target_compatible_with = select ({
258+ "@bazel_tools//src/conditions:windows" : ["@platforms//:incompatible" ],
259+ "//conditions:default" : [],
260+ }),
237261 deps = [
238262 ":test_models" ,
239263 "//tensorflow/lite/python:schema_py" ,
0 commit comments