diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 54e46e138b0..e4c29ad33b3 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py @@ -652,7 +652,7 @@ class RegressionTests(unittest.TestCase): hist.append(0) yield 1 hist.append(1) - assert False + raise AssertionError hist.append(2) def gen2(x):