diff options
author | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-20 13:51:26 -0400 |
---|---|---|
committer | Dan O'Reilly <oreilldf@gmail.com> | 2015-08-20 13:52:19 -0400 |
commit | 3bdfb4b6951ad3db1a9493e86cd76f4f1c4d8986 (patch) | |
tree | a81cd74e62868303d027c27059ca5476bf510f9d /python/google | |
parent | 9d689692d334b34a4e085fd9982c11761fd1c128 (diff) | |
download | protobuf-3bdfb4b6951ad3db1a9493e86cd76f4f1c4d8986.tar.gz protobuf-3bdfb4b6951ad3db1a9493e86cd76f4f1c4d8986.tar.bz2 protobuf-3bdfb4b6951ad3db1a9493e86cd76f4f1c4d8986.zip |
Add some clarifying comments. Remove ez_setup.py.
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
Diffstat (limited to 'python/google')
-rwxr-xr-x | python/google/protobuf/internal/_parameterized.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/python/google/protobuf/internal/_parameterized.py b/python/google/protobuf/internal/_parameterized.py index 6c5a2bac..3821b916 100755 --- a/python/google/protobuf/internal/_parameterized.py +++ b/python/google/protobuf/internal/_parameterized.py @@ -263,6 +263,8 @@ def _ModifyClass(class_object, testcases, naming_type): 'Cannot add parameters to %s,' ' which already has parameterized methods.' % (class_object,)) class_object._id_suffix = id_suffix = {} + # We change the size of __dict__ while we iterate over it, + # which Python 3.x will complain about, so use copy(). for name, obj in class_object.__dict__.copy().items(): if (name.startswith(unittest.TestLoader.testMethodPrefix) and isinstance(obj, types.FunctionType)): |