[svn r99] Minor change to make doctest work on both 2.3 and 2.5.

This commit is contained in:
which.linden
2008-03-03 17:14:38 -05:00
parent 38fca2637f
commit 646b130cf0

View File

@@ -453,11 +453,12 @@ class Actor(object):
... else:
... print "received", message
... def excepted(self, exc):
... print "excepted:", exc
... # printing out exc varies per version of Python
... print "excepted"
>>> a = Exceptor()
>>> a.cast('fail')
>>> api.sleep(0)
excepted: <type 'exceptions.TypeError'>
excepted
The main purpose of excepted is to prevent the actor's coroutine
from dying.