From ec806395660c58d41f1bf8b19a63652fba40834d Mon Sep 17 00:00:00 2001 From: Gustavo Niemeyer Date: Sat, 19 Jun 2010 23:04:28 -0300 Subject: Updated NEWS file. --- mocker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mocker.py') diff --git a/mocker.py b/mocker.py index eb03bac..8475868 100644 --- a/mocker.py +++ b/mocker.py @@ -1054,6 +1054,8 @@ class Mock(object): return type(self) return self.__mocker_type__ if name == "__length_hint__": + # This is used by Python 2.6+ to optimize the allocation + # of arrays in certain cases. Pretend it doesn't exist. raise AttributeError("No __length_hint__ here!") return self.__mocker_act__("getattr", (name,)) -- cgit v1.2.1