diff options
author | Tim Peters <tim.peters@gmail.com> | 2004-07-18 17:34:03 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2004-07-18 17:34:03 (GMT) |
commit | beb7c0c434cf108fe903e80c070ed1a5aa7b14c2 (patch) | |
tree | b20b5170808c35ecb36dbb3d11b3d749fed045fa /Lib | |
parent | 68a323c5d811843dba73bb41efc18f4693b0f2d6 (diff) | |
download | cpython-beb7c0c434cf108fe903e80c070ed1a5aa7b14c2.zip cpython-beb7c0c434cf108fe903e80c070ed1a5aa7b14c2.tar.gz cpython-beb7c0c434cf108fe903e80c070ed1a5aa7b14c2.tar.bz2 |
test_sf_950057's gen1() used an assert statement, which caused the test
to fail when running with -O. Changed to raise AssertionError instead.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_itertools.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |