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
2572a95c
Commit
2572a95c
authored
Mar 26, 2019
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a test case.
parent
e64647fe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
src/gevent/tests/test__greenlet.py
src/gevent/tests/test__greenlet.py
+25
-0
No files found.
src/gevent/tests/test__greenlet.py
View file @
2572a95c
...
...
@@ -755,6 +755,31 @@ class TestBasic(greentest.TestCase):
finally
:
greenlet
.
sys_getframe
=
ogf
def
test_spawn_length_nested_doesnt_grow
(
self
):
# https://github.com/gevent/gevent/pull/1374
def
doit1
():
getcurrent
().
_spawning_stack_frames
.
append
(
'not copied'
)
return
gevent
.
spawn
(
doit2
)
def
doit2
():
return
gevent
.
spawn
(
doit3
)
def
doit3
():
current
=
gevent
.
getcurrent
()
return
current
g1
=
gevent
.
spawn
(
doit1
)
g1
.
join
()
g2
=
g1
.
value
g2
.
join
()
g3
=
g2
.
value
self
.
assertNotIn
(
'not copied'
,
g3
.
_spawning_stack_frames
)
class
TestStart
(
greentest
.
TestCase
):
...
...
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