Only run GetDebugString test with cpp impl.

pull/7498/head
Peter Sobot 3 years ago
parent 4e176f29b4
commit ef0bd1343b
  1. 4
      python/google/protobuf/internal/descriptor_test.py

@ -143,6 +143,10 @@ class DescriptorTest(unittest.TestCase):
def testContainingServiceFixups(self):
self.assertEqual(self.my_service, self.my_method.containing_service)
@unittest.skipIf(
api_implementation.Type() != 'cpp',
'GetDebugString is only available with the cpp implementation',
)
def testGetDebugString(self):
self.assertEqual(self.my_file.GetDebugString(), TEST_FILE_DESCRIPTOR_DEBUG)

Loading…
Cancel
Save