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
0dafc993
Commit
0dafc993
authored
Mar 15, 2011
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix test__exc_info.py
parent
514852f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
greentest/test__exc_info.py
greentest/test__exc_info.py
+10
-4
No files found.
greentest/test__exc_info.py
View file @
0dafc993
...
...
@@ -18,6 +18,13 @@ def hello():
raise
expected_error
def
hello2
():
try
:
hello
()
except
ExpectedError
:
pass
error
=
Exception
(
'hello'
)
...
...
@@ -31,7 +38,7 @@ class Test(greentest.TestCase):
g
=
gevent
.
spawn
(
hello
)
g
.
join
()
self
.
assert_stderr_traceback
(
expected_error
)
self
.
assert_stderr
(
'
<Greenlet at 0x[0-9a-f]+L?: hello> failed with ExpectedError
'
)
self
.
assert_stderr
(
'
Ignoring ExpectedError in <Greenlet
'
)
if
not
isinstance
(
g
.
exception
,
ExpectedError
):
raise
g
.
exception
try
:
...
...
@@ -40,10 +47,9 @@ class Test(greentest.TestCase):
assert
ex
is
error
,
(
ex
,
error
)
def
test2
(
self
):
get_hub
().
reactor
.
timer
(
0
,
hello
)
self
.
hook_stderr
(
)
timer
=
get_hub
().
loop
.
timer
(
0
)
timer
.
start
(
hello2
)
gevent
.
sleep
(
0.1
)
self
.
assert_stderr_traceback
(
expected_error
)
assert
sys
.
exc_info
()
==
(
None
,
None
,
None
),
sys
.
exc_info
()
...
...
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