Skip to content

Commit

Permalink
Fixed descriptor_pool_test.py for Python 2.6
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
acozzette committed Nov 22, 2016
1 parent a41090e commit a7f300d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/google/protobuf/internal/descriptor_pool_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def testFindAllExtensions(self):
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')
Expand Down

0 comments on commit a7f300d

Please sign in to comment.