From 7f0092a8021466009e65367aed68f2a1867da880 Mon Sep 17 00:00:00 2001 From: Jie Luo Date: Tue, 23 May 2023 11:15:54 -0700 Subject: [PATCH] Internal change PiperOrigin-RevId: 534490554 --- python/pb_unit_tests/descriptor_pool_test_wrapper.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/pb_unit_tests/descriptor_pool_test_wrapper.py b/python/pb_unit_tests/descriptor_pool_test_wrapper.py index ea4b27332d..bc1de08400 100644 --- a/python/pb_unit_tests/descriptor_pool_test_wrapper.py +++ b/python/pb_unit_tests/descriptor_pool_test_wrapper.py @@ -24,11 +24,10 @@ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. import unittest +from google.protobuf.internal import api_implementation from google.protobuf.internal.descriptor_pool_test import * -# This is testing that certain methods unconditionally throw TypeError. -# In the new extension we simply don't define them at all. -AddDescriptorTest.testAddTypeError.__unittest_expecting_failure__ = True +AddDescriptorTest.testAddTypeError.__unittest_skip__ = True SecondaryDescriptorFromDescriptorDB.testErrorCollector.__unittest_expecting_failure__ = True