diff -r 06600287f11f Lib/unittest/mock.py --- a/Lib/unittest/mock.py Fri Jul 17 16:48:48 2015 -0700 +++ b/Lib/unittest/mock.py Fri Jul 17 17:40:44 2015 -0700 @@ -572,21 +572,21 @@ class NonCallableMock(Base): def __getattr__(self, name): if name in {'_mock_methods', '_mock_unsafe'}: raise AttributeError(name) elif self._mock_methods is not None: if name not in self._mock_methods or name in _all_magics: raise AttributeError("Mock object has no attribute %r" % name) elif _is_magic(name): raise AttributeError(name) if not self._mock_unsafe: - if name.startswith(('assert', 'assret')): + if name.startswith('assert'): raise AttributeError(name) result = self._mock_children.get(name) if result is _deleted: raise AttributeError(name) elif result is None: wraps = None if self._mock_wraps is not None: # XXXX should we get the attribute without triggering code # execution?