summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_itertools.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2014-11-23 06:14:41 (GMT)
committerRaymond Hettinger <python@rcn.com>2014-11-23 06:14:41 (GMT)
commitbb6c0aaebfbeb9ab13886e261df904c9c12853b9 (patch)
treeaa283779a1ce070feb4c59a8c5cf624d3830059c /Lib/test/test_itertools.py
parent828d932a2c4da5eb7c05e85dfe51f5f6db68084d (diff)
downloadcpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.zip
cpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.tar.gz
cpython-bb6c0aaebfbeb9ab13886e261df904c9c12853b9.tar.bz2
PEP 479: Use the return-keyword instead of raising StopIteration inside a generators.
Diffstat (limited to 'Lib/test/test_itertools.py')
-rw-r--r--Lib/test/test_itertools.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py
index 5f33d39..d48bf55 100644
--- a/Lib/test/test_itertools.py
+++ b/Lib/test/test_itertools.py
@@ -1803,8 +1803,6 @@ class RegressionTests(unittest.TestCase):
hist.append(3)
yield 2
hist.append(4)
- if x:
- raise StopIteration
hist = []
self.assertRaises(AssertionError, list, chain(gen1(), gen2(False)))