summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_builtin.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-04-06 19:55:12 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-04-06 19:55:12 (GMT)
commitee57f159afcba5aeca24a064a114ab441419a820 (patch)
treee950a43a52d0e87bbaad971078fabdb036c21041 /Lib/test/test_builtin.py
parent710b5f0b2452accf3495556b8bdc614699e6f544 (diff)
parent278d03bd66e40d57168ff66c6fb79eae599a784d (diff)
downloadcpython-ee57f159afcba5aeca24a064a114ab441419a820.zip
cpython-ee57f159afcba5aeca24a064a114ab441419a820.tar.gz
cpython-ee57f159afcba5aeca24a064a114ab441419a820.tar.bz2
Revert a premature patch for issue #14010 (changeset 846bd418aee5).
Diffstat (limited to 'Lib/test/test_builtin.py')
-rw-r--r--Lib/test/test_builtin.py34
1 files changed, 1 insertions, 33 deletions
diff --git a/Lib/test/test_builtin.py b/Lib/test/test_builtin.py
index b601ea4..f46f8d5 100644
--- a/Lib/test/test_builtin.py
+++ b/Lib/test/test_builtin.py
@@ -1564,40 +1564,8 @@ class TestSorted(unittest.TestCase):
data = 'The quick Brown fox Jumped over The lazy Dog'.split()
self.assertRaises(TypeError, sorted, data, None, lambda x,y: 0)
-class TestRecursionLimit(unittest.TestCase):
- # Issue #14010
- recursionlimit = sys.getrecursionlimit()
-
- def test_filter(self):
- it = (0, 1)
- for _ in range(self.recursionlimit):
- it = filter(bool, it)
- with self.assertRaises(RuntimeError):
- for _ in it:
- pass
- del it
-
- def test_map(self):
- it = (0, 1)
- for _ in range(self.recursionlimit):
- it = map(int, it)
- with self.assertRaises(RuntimeError):
- for _ in it:
- pass
- del it
-
- def test_zip(self):
- it = (0, 1)
- for _ in range(self.recursionlimit):
- it = zip(it)
- with self.assertRaises(RuntimeError):
- for _ in it:
- pass
- del it
-
-
def test_main(verbose=None):
- test_classes = (BuiltinTest, TestSorted, TestRecursionLimit)
+ test_classes = (BuiltinTest, TestSorted)
run_unittest(*test_classes)