diff options
Diffstat (limited to 'Lib/test/test_iterlen.py')
-rw-r--r-- | Lib/test/test_iterlen.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_iterlen.py b/Lib/test/test_iterlen.py index 1770de2..bcd0a6f 100644 --- a/Lib/test/test_iterlen.py +++ b/Lib/test/test_iterlen.py @@ -55,7 +55,9 @@ def len(obj): return _len(obj) except TypeError: try: - return obj._length_cue() + # note: this is an internal undocumented API, + # don't rely on it in your own programs + return obj.__length_hint__() except AttributeError: raise TypeError |