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
b7d9e788
Commit
b7d9e788
authored
Aug 18, 2009
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test_socket.py: use gevent's Queue and Event instead of those from (patched) threading
parent
938a2804
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
greentest/test_socket.py
greentest/test_socket.py
+12
-4
No files found.
greentest/test_socket.py
View file @
b7d9e788
...
...
@@ -98,10 +98,18 @@ class ThreadableTest:
self
.
server_ready
.
set
()
def
_setUp
(
self
):
self
.
server_ready
=
threading
.
Event
()
self
.
client_ready
=
threading
.
Event
()
self
.
done
=
threading
.
Event
()
self
.
queue
=
Queue
.
Queue
(
1
)
#self.server_ready = threading.Event()
#self.client_ready = threading.Event()
#self.done = threading.Event()
#self.queue = Queue.Queue(1)
# monkey-patched threading.Event and threading.Queue work fine here too
# but let's test gevent classes
from
gevent.event
import
Event
from
gevent.queue
import
Queue
self
.
server_ready
=
Event
()
self
.
client_ready
=
Event
()
self
.
done
=
Event
()
self
.
queue
=
Queue
(
1
)
# Do some munging to start the client test.
methodname
=
self
.
id
()
...
...
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