aboutsummaryrefslogtreecommitdiffhomepage
path: root/python/google/protobuf/internal/_parameterized.py
diff options
context:
space:
mode:
authorGravatar Dan O'Reilly <oreilldf@gmail.com>2015-08-20 13:51:26 -0400
committerGravatar Dan O'Reilly <oreilldf@gmail.com>2015-08-20 13:52:19 -0400
commit3bdfb4b6951ad3db1a9493e86cd76f4f1c4d8986 (patch)
treea81cd74e62868303d027c27059ca5476bf510f9d /python/google/protobuf/internal/_parameterized.py
parent9d689692d334b34a4e085fd9982c11761fd1c128 (diff)
Add some clarifying comments. Remove ez_setup.py.
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
Diffstat (limited to 'python/google/protobuf/internal/_parameterized.py')
-rwxr-xr-xpython/google/protobuf/internal/_parameterized.py2
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)):