]> granicus.if.org Git - python/commitdiff
test_sf_950057's gen1() used an assert statement, which caused the test
authorTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 17:34:03 +0000 (17:34 +0000)
committerTim Peters <tim.peters@gmail.com>
Sun, 18 Jul 2004 17:34:03 +0000 (17:34 +0000)
to fail when running with -O.  Changed to raise AssertionError instead.

Lib/test/test_itertools.py

index 54e46e138b04a9f414d97900b90291204975dd0e..e4c29ad33b3ef4fe0e85d8d42f8812a581b0b547 100644 (file)
@@ -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):