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:
parent
68a323c5d8
commit
beb7c0c434
@ -652,7 +652,7 @@ class RegressionTests(unittest.TestCase):
|
|||||||
hist.append(0)
|
hist.append(0)
|
||||||
yield 1
|
yield 1
|
||||||
hist.append(1)
|
hist.append(1)
|
||||||
assert False
|
raise AssertionError
|
||||||
hist.append(2)
|
hist.append(2)
|
||||||
|
|
||||||
def gen2(x):
|
def gen2(x):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user