summaryrefslogtreecommitdiff
path: root/mock.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-09-22 07:22:56 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-09-22 07:22:56 -0400
commitd18c4a8ca50361893eaa7ba86821a136ba7a4807 (patch)
treed5b682a46e9b44a6edd6e12771ffc831503cb594 /mock.py
parentcfdd8b9c6c9a0fc0bb0d332dd034330a37ea5a1f (diff)
downloadpython-coveragepy-d18c4a8ca50361893eaa7ba86821a136ba7a4807.tar.gz
The best way to get py3k support: same source runs on both, with some contortions.
Diffstat (limited to 'mock.py')
-rw-r--r--mock.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mock.py b/mock.py
index 03871d6..795ccc1 100644
--- a/mock.py
+++ b/mock.py
@@ -80,7 +80,7 @@ class Mock(object):
self.call_count = 0
self.call_args_list = []
self.method_calls = []
- for child in self._children.itervalues():
+ for child in self._children.values():
child.reset_mock()
if isinstance(self._return_value, Mock):
self._return_value.reset_mock()