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):
>>> try:
... result.get()
... except ZeroDivisionError:
... print 'ZeroDivisionError'
... print('ZeroDivisionError')
ZeroDivisionError
"""
def __init__(self):
......
......@@ -33,7 +33,7 @@ class Timeout(BaseException):
>>> import gevent
>>> gevent.Timeout(0.1).start()
>>> gevent.sleep(0.2)
>>> gevent.sleep(0.2) #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
Timeout: 0.1 seconds
......@@ -132,7 +132,7 @@ class Timeout(BaseException):
def __str__(self):
"""
>>> raise Timeout
>>> raise Timeout #doctest: +IGNORE_EXCEPTION_DETAIL
Traceback (most recent call last):
...
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