Commit a7f300d6 authored by Adam Cozzette's avatar Adam Cozzette

Fixed descriptor_pool_test.py for Python 2.6

The curly brace syntax for sets was introduced in Python 2.7, and so for
compatibility with 2.6 we need to avoid using it for now.
parent a41090ee
......@@ -269,7 +269,7 @@ class DescriptorPoolTest(unittest.TestCase):
self.pool.AddExtensionDescriptor(another_field)
extensions = self.pool.FindAllExtensions(factory1_message)
expected_extension_numbers = {one_more_field, another_field}
expected_extension_numbers = set([one_more_field, another_field])
self.assertEqual(expected_extension_numbers, set(extensions))
# Verify that mutating the returned list does not affect the pool.
extensions.append('unexpected_element')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment