mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix a bunch of doctests with the -d option of refactor.py.
We still have 27 failing tests (down from 39).
This commit is contained in:
parent
4502c804b9
commit
7131f84400
24 changed files with 217 additions and 217 deletions
|
@ -247,7 +247,7 @@ continue in for loop under finally shouuld be ok.
|
|||
... finally:
|
||||
... for abc in range(10):
|
||||
... continue
|
||||
... print abc
|
||||
... print(abc)
|
||||
>>> test()
|
||||
9
|
||||
|
||||
|
@ -328,11 +328,11 @@ so we need to be sure that a break is actually inside a loop. If it
|
|||
isn't, there should be a syntax error.
|
||||
|
||||
>>> try:
|
||||
... print 1
|
||||
... print(1)
|
||||
... break
|
||||
... print 2
|
||||
... print(2)
|
||||
... finally:
|
||||
... print 3
|
||||
... print(3)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
SyntaxError: 'break' outside loop (<doctest test.test_syntax[42]>, line 3)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue