From 4ffeaa6a581bcb3b1d2e3870be5f09f267b227c9 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Wed, 1 Jun 2022 12:25:11 -0700 Subject: [PATCH] Fixed Python Tests by disabling the numpy test for now. PiperOrigin-RevId: 452357087 --- BUILD | 13 +++++++++++++ python/pb_unit_tests/numpy_test_wrapper.py | 15 +++++++++------ 2 files changed, 22 insertions(+), 6 deletions(-) diff --git a/BUILD b/BUILD index e58590e8aa..510dc51b0a 100644 --- a/BUILD +++ b/BUILD @@ -724,3 +724,16 @@ filegroup( ) # end:github_only + +# begin:google_only +# +# py_binary( +# name = "update_check_runs", +# srcs = ["update_check_runs.py"], +# main = "update_check_runs.py", +# deps = [ +# "//third_party/py/absl:app", +# ], +# ) +# +# end:google_only diff --git a/python/pb_unit_tests/numpy_test_wrapper.py b/python/pb_unit_tests/numpy_test_wrapper.py index ee0c0c6b1f..58fecac0aa 100644 --- a/python/pb_unit_tests/numpy_test_wrapper.py +++ b/python/pb_unit_tests/numpy_test_wrapper.py @@ -24,13 +24,16 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import unittest -from google.protobuf.internal.numpy_test import * -# TODO(b/227379846): upb does not match pure-python and fast cpp behavior for -# assignment of numpy arrays to proto float or multidimensional arrays to -# repeated fields yet. -NumpyFloatProtoTest.testNumpyFloatArrayToScalar_RaisesTypeError.__unittest_expecting_failure__ = True -NumpyFloatProtoTest.testNumpyDim2FloatArrayToRepeated_RaisesTypeError.__unittest_expecting_failure__ = True +# begin:google_only +# from google.protobuf.internal.numpy_test import * +# +# # TODO(b/227379846): upb does not match pure-python and fast cpp behavior for +# # assignment of numpy arrays to proto float or multidimensional arrays to +# # repeated fields yet. +# NumpyFloatProtoTest.testNumpyFloatArrayToScalar_RaisesTypeError.__unittest_expecting_failure__ = True +# NumpyFloatProtoTest.testNumpyDim2FloatArrayToRepeated_RaisesTypeError.__unittest_expecting_failure__ = True +# end:google_only if __name__ == '__main__': unittest.main(verbosity=2)