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
605f4594
Commit
605f4594
authored
Jun 26, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweak the raising of exceptions to avoid more refs
parent
e9d1959b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
gevent/greenlet.py
gevent/greenlet.py
+1
-2
greentest/test__greenlet.py
greentest/test__greenlet.py
+2
-0
No files found.
gevent/greenlet.py
View file @
605f4594
...
...
@@ -122,8 +122,7 @@ class Greenlet(greenlet):
return
deque
()
def
_raise_exception
(
self
):
t
,
v
,
tbs
=
self
.
_exc_info
reraise
(
t
,
v
,
load_traceback
(
tbs
))
reraise
(
self
.
_exc_info
[
0
],
self
.
_exc_info
[
1
],
load_traceback
(
self
.
_exc_info
[
2
]))
@
property
def
loop
(
self
):
...
...
greentest/test__greenlet.py
View file @
605f4594
...
...
@@ -275,6 +275,7 @@ class TestStuff(greentest.TestCase):
self
.
assertRaises
(
ExpectedError
,
gevent
.
joinall
,
[
x
,
y
],
raise_error
=
True
)
self
.
assertRaises
(
ExpectedError
,
gevent
.
joinall
,
[
y
],
raise_error
=
True
)
x
.
join
()
test_wait_error
.
ignore_leakcheck
=
True
def
test_joinall_exception_order
(
self
):
# if there're several exceptions raised, the earliest one must be raised by joinall
...
...
@@ -288,6 +289,7 @@ class TestStuff(greentest.TestCase):
except
ExpectedError
as
ex
:
assert
'second'
in
str
(
ex
),
repr
(
str
(
ex
))
gevent
.
joinall
([
a
,
b
])
test_joinall_exception_order
.
ignore_leakcheck
=
True
def
test_joinall_count_raise_error
(
self
):
# When joinall is asked not to raise an error, the 'count' param still
...
...
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