diff options
Diffstat (limited to 'python')
-rwxr-xr-x | python/google/protobuf/internal/generator_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/google/protobuf/internal/generator_test.py b/python/google/protobuf/internal/generator_test.py index cc67f19f..f6135fb9 100755 --- a/python/google/protobuf/internal/generator_test.py +++ b/python/google/protobuf/internal/generator_test.py @@ -291,9 +291,9 @@ class GeneratorTest(unittest.TestCase): self.assertIs(desc.oneofs[0], desc.oneofs_by_name['oneof_field']) nested_names = set(['oneof_uint32', 'oneof_nested_message', 'oneof_string', 'oneof_bytes']) - self.assertItemsEqual( + self.assertEqual( nested_names, - [field.name for field in desc.oneofs[0].fields]) + set([field.name for field in desc.oneofs[0].fields])) for field_name, field_desc in desc.fields_by_name.items(): if field_name in nested_names: self.assertIs(desc.oneofs[0], field_desc.containing_oneof) |