mirror of
https://github.com/python/cpython.git
synced 2024-11-25 10:54:51 +08:00
Fix another test.
This commit is contained in:
parent
d8c19672a7
commit
c420b2f3ee
@ -270,7 +270,7 @@ Guido's binary tree example.
|
||||
>>> t = tree("ABCDEFGHIJKLMNOPQRSTUVWXYZ")
|
||||
>>> # Print the nodes of the tree in in-order.
|
||||
>>> for x in t:
|
||||
... print(x, end=' ')
|
||||
... print(' '+x, end='')
|
||||
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
||||
|
||||
>>> # A non-recursive generator.
|
||||
@ -291,7 +291,7 @@ Guido's binary tree example.
|
||||
|
||||
>>> # Exercise the non-recursive generator.
|
||||
>>> for x in t:
|
||||
... print(x, end=' ')
|
||||
... print(' '+x, end='')
|
||||
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
|
||||
|
||||
"""
|
||||
@ -1555,7 +1555,7 @@ Now check some throw() conditions:
|
||||
... try:
|
||||
... print((yield))
|
||||
... except ValueError as v:
|
||||
... print("caught ValueError (%s)" % (v), end=' ')
|
||||
... print("caught ValueError (%s)" % (v))
|
||||
>>> import sys
|
||||
>>> g = f()
|
||||
>>> g.next()
|
||||
|
Loading…
Reference in New Issue
Block a user