Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
5691db2c
Commit
5691db2c
authored
May 18, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test__doctest under Python3.4
parent
fe62b4c9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
gevent/event.py
gevent/event.py
+1
-1
gevent/timeout.py
gevent/timeout.py
+2
-2
No files found.
gevent/event.py
View file @
5691db2c
...
@@ -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
):
...
...
gevent/timeout.py
View file @
5691db2c
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment