mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue