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
c87bf86e
Commit
c87bf86e
authored
Jan 27, 2016
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Failing test for issue #728
parent
0151c000
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
0 deletions
+24
-0
greentest/_imports_at_top_level.py
greentest/_imports_at_top_level.py
+2
-0
greentest/_imports_imports_at_top_level.py
greentest/_imports_imports_at_top_level.py
+13
-0
greentest/test__issue_728.py
greentest/test__issue_728.py
+9
-0
No files found.
greentest/_imports_at_top_level.py
0 → 100644
View file @
c87bf86e
# We simply import a stdlib module
__import__
(
'netrc'
)
greentest/_imports_imports_at_top_level.py
0 → 100644
View file @
c87bf86e
import
gevent
# For reproducing #728: We spawn a greenlet at import time,
# that itself wants to import, and wait on it at import time.
# If we're the only greenlet running, and locks aren't granular
# enough, this results in a LoopExit (and also a lock deadlock)
def
f
():
__import__
(
'_imports_at_top_level'
)
g
=
gevent
.
spawn
(
f
)
g
.
get
()
greentest/test__issue_728.py
0 → 100644
View file @
c87bf86e
#!/usr/bin/env python
from
gevent.monkey
import
patch_all
patch_all
()
if
__name__
==
'__main__'
:
# Reproducing #728 requires a series of nested
# imports
__import__
(
'_imports_imports_at_top_level'
)
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