From beb7c0c434cf108fe903e80c070ed1a5aa7b14c2 Mon Sep 17 00:00:00 2001 From: Tim Peters Date: Sun, 18 Jul 2004 17:34:03 +0000 Subject: test_sf_950057's gen1() used an assert statement, which caused the test to fail when running with -O. Changed to raise AssertionError instead. --- Lib/test/test_itertools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_itertools.py b/Lib/test/test_itertools.py index 54e46e1..e4c29ad 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): -- cgit v0.12