commit | beb7c0c434cf108fe903e80c070ed1a5aa7b14c2 | [log] [tgz] |
---|---|---|
author | Tim Peters <tim.peters@gmail.com> | Sun Jul 18 17:34:03 2004 +0000 |
committer | Tim Peters <tim.peters@gmail.com> | Sun Jul 18 17:34:03 2004 +0000 |
tree | b20b5170808c35ecb36dbb3d11b3d749fed045fa | |
parent | 68a323c5d811843dba73bb41efc18f4693b0f2d6 [diff] |
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 54e46e1..e4c29ad 100644 --- a/Lib/test/test_itertools.py +++ b/Lib/test/test_itertools.py
@@ -652,7 +652,7 @@ hist.append(0) yield 1 hist.append(1) - assert False + raise AssertionError hist.append(2) def gen2(x):