summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-18 17:34:03 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-07-18 17:34:03 (GMT)
commitbeb7c0c434cf108fe903e80c070ed1a5aa7b14c2 (patch)
treeb20b5170808c35ecb36dbb3d11b3d749fed045fa /Lib
parent68a323c5d811843dba73bb41efc18f4693b0f2d6 (diff)
downloadcpython-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.py2
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):