mirror of
https://github.com/python/cpython.git
synced 2024-11-28 12:31:14 +08:00
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)
|
||||
yield 1
|
||||
hist.append(1)
|
||||
assert False
|
||||
raise AssertionError
|
||||
hist.append(2)
|
||||
|
||||
def gen2(x):
|
||||
|
Loading…
Reference in New Issue
Block a user