Commit 5691db2c authored by Jason Madden's avatar Jason Madden

Fix test__doctest under Python3.4

parent fe62b4c9
...@@ -153,7 +153,7 @@ class AsyncResult(object): ...@@ -153,7 +153,7 @@ class AsyncResult(object):
>>> try: >>> try:
... result.get() ... result.get()
... except ZeroDivisionError: ... except ZeroDivisionError:
... print 'ZeroDivisionError' ... print('ZeroDivisionError')
ZeroDivisionError ZeroDivisionError
""" """
def __init__(self): def __init__(self):
......
...@@ -33,7 +33,7 @@ class Timeout(BaseException): ...@@ -33,7 +33,7 @@ class Timeout(BaseException):
>>> import gevent >>> import gevent
>>> gevent.Timeout(0.1).start() >>> gevent.Timeout(0.1).start()
>>> gevent.sleep(0.2) >>> gevent.sleep(0.2) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last): Traceback (most recent call last):
... ...
Timeout: 0.1 seconds Timeout: 0.1 seconds
...@@ -132,7 +132,7 @@ class Timeout(BaseException): ...@@ -132,7 +132,7 @@ class Timeout(BaseException):
def __str__(self): def __str__(self):
""" """
>>> raise Timeout >>> raise Timeout #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last): Traceback (most recent call last):
... ...
Timeout Timeout
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment