test_sf_950057's gen1() used an assert statement, which caused the test

to fail when running with -O.  Changed to raise AssertionError instead.
This commit is contained in:
Tim Peters 2004-07-18 17:34:03 +00:00
parent 68a323c5d8
commit beb7c0c434

View file

@ -652,7 +652,7 @@ def gen1():
hist.append(0)
yield 1
hist.append(1)
assert False
raise AssertionError
hist.append(2)
def gen2(x):