summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2007-12-06 00:56:53 (GMT)
committerRaymond Hettinger <python@rcn.com>2007-12-06 00:56:53 (GMT)
commit4e2f714031654eb4174393454c008961b636f539 (patch)
treee415e4318c986483c73d9e5e01b9434a7be9ce83 /Lib
parent923ad7a9488c9b514c8e27315179ada1d142f3e5 (diff)
downloadcpython-4e2f714031654eb4174393454c008961b636f539.zip
cpython-4e2f714031654eb4174393454c008961b636f539.tar.gz
cpython-4e2f714031654eb4174393454c008961b636f539.tar.bz2
Fix Issue 1045.
Factor-out common calling code by simplifying the length_hint API. Speed-up the function by caching the PyObject_String for the attribute lookup.
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/list_tests.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py
index a0011a4..88bc49d 100644
--- a/Lib/test/list_tests.py
+++ b/Lib/test/list_tests.py
@@ -523,7 +523,5 @@ class CommonTest(seq_tests.CommonTest):
# Bug #1242657
class F(object):
def __iter__(self):
- yield 23
- def __len__(self):
raise KeyboardInterrupt
self.assertRaises(KeyboardInterrupt, list, F())