From: Tim Peters Date: Sun, 18 Jul 2004 17:34:03 +0000 (+0000) Subject: test_sf_950057's gen1() used an assert statement, which caused the test X-Git-Tag: v2.4a2~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=beb7c0c434cf108fe903e80c070ed1a5aa7b14c2;p=python test_sf_950057's gen1() used an assert statement, which caused the test to fail when running with -O. Changed to raise AssertionError instead. --- diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 54e46e138b..e4c29ad33b 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):