[Checkins] SVN: zope.testrunner/trunk/src/zope/testrunner/find.py try...except...finally doesn't work in Python 2.4
Lennart Regebro
regebro at gmail.com
Thu Apr 29 06:05:57 EDT 2010
Log message for revision 111567:
try...except...finally doesn't work in Python 2.4
Changed:
U zope.testrunner/trunk/src/zope/testrunner/find.py
-=-
Modified: zope.testrunner/trunk/src/zope/testrunner/find.py
===================================================================
--- zope.testrunner/trunk/src/zope/testrunner/find.py 2010-04-29 09:52:27 UTC (rev 111566)
+++ zope.testrunner/trunk/src/zope/testrunner/find.py 2010-04-29 10:05:57 UTC (rev 111567)
@@ -71,12 +71,13 @@
>>> from zope.testrunner.interfaces import EndRun
>>> try: #doctest: +ELLIPSIS
+ ... try: # try...except...finally doesn't work in Python 2.4
... print "Result:" # Needed to prevent the result from starting with '...'
... StartUpFailure(options, None, exc_info)
- ... except EndRun:
+ ... except EndRun:
... print "EndRun raised"
... finally:
- ... sys.stdin = old_stdin
+ ... sys.stdin = old_stdin
Result:
...Exception:
<BLANKLINE>
More information about the checkins
mailing list