[Python-checkins] python/dist/src/Lib/test test_generators.py, 1.45, 1.46
tim_one@users.sourceforge.net
tim_one at users.sourceforge.net
Sun Aug 7 05:05:00 CEST 2005
Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14552/Lib/test
Modified Files:
test_generators.py
Log Message:
Whitespace normalization (ran reindent.py over the whole tree).
Index: test_generators.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_generators.py,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -d -r1.45 -r1.46
--- test_generators.py 2 Aug 2005 00:46:43 -0000 1.45
+++ test_generators.py 7 Aug 2005 03:04:58 -0000 1.46
@@ -484,7 +484,7 @@
merged A into G
A->G B->G C->G D->G E->G F->G G->G H->G I->G J->G K->G L->G M->G
->>> for s in sets: s.close() # break cycles
+>>> for s in sets: s.close() # break cycles
"""
# Emacs turd '
@@ -1467,12 +1467,12 @@
>>> g.throw(ValueError, TypeError(1)) # mismatched type, rewrapped
caught ValueError (1)
->>> g.throw(ValueError(1), "foo") # bad args
+>>> g.throw(ValueError(1), "foo") # bad args
Traceback (most recent call last):
...
TypeError: instance exception may not have a separate value
->>> g.throw(ValueError, "foo", 23) # bad args
+>>> g.throw(ValueError, "foo", 23) # bad args
Traceback (most recent call last):
...
TypeError: throw() third argument must be a traceback object
@@ -1482,13 +1482,13 @@
... raise exc
... except:
... g.throw(*sys.exc_info())
->>> throw(g,ValueError) # do it with traceback included
+>>> throw(g,ValueError) # do it with traceback included
caught ValueError ()
>>> g.send(1)
1
->>> throw(g,TypeError) # terminate the generator
+>>> throw(g,TypeError) # terminate the generator
Traceback (most recent call last):
...
TypeError
@@ -1501,12 +1501,12 @@
...
StopIteration
->>> g.throw(ValueError,6) # throw on closed generator
+>>> g.throw(ValueError,6) # throw on closed generator
Traceback (most recent call last):
...
ValueError: 6
->>> f().throw(ValueError,7) # throw on just-opened generator
+>>> f().throw(ValueError,7) # throw on just-opened generator
Traceback (most recent call last):
...
ValueError: 7
@@ -1527,11 +1527,11 @@
>>> f().close() # close on just-opened generator should be fine
->>> def f(): yield # an even simpler generator
->>> f().close() # close before opening
+>>> def f(): yield # an even simpler generator
+>>> f().close() # close before opening
>>> g = f()
>>> g.next()
->>> g.close() # close normally
+>>> g.close() # close normally
And finalization:
More information about the Python-checkins
mailing list