diff --git a/python/google/protobuf/internal/descriptor_test.py b/python/google/protobuf/internal/descriptor_test.py index 85d3dd57c9401..8c43e476f9077 100644 --- a/python/google/protobuf/internal/descriptor_test.py +++ b/python/google/protobuf/internal/descriptor_test.py @@ -122,7 +122,6 @@ def testFindMethodByName(self): service_descriptor = (unittest_custom_options_pb2. TestServiceWithCustomOptions.DESCRIPTOR) method_descriptor = service_descriptor.FindMethodByName('Foo') - self.assertEqual(type(method_descriptor), descriptor.MethodDescriptor) self.assertEqual(method_descriptor.name, 'Foo') with self.assertRaises(KeyError): service_descriptor.FindMethodByName('MethodDoesNotExist')