Fix another test.

This commit is contained in:
Guido van Rossum 2007-02-09 22:09:01 +00:00
parent d8c19672a7
commit c420b2f3ee

View File

@ -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()