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
ef681973
Commit
ef681973
authored
Jan 28, 2010
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__socket: remove deprecated test_server
parent
70675e7c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
20 deletions
+0
-20
greentest/test__socket.py
greentest/test__socket.py
+0
-20
No files found.
greentest/test__socket.py
View file @
ef681973
...
...
@@ -98,26 +98,6 @@ class TestTCP(greentest.TestCase):
fd
.
close
()
acceptor
.
get
()
# this test was copied from api_test.py
# using kill() like that is not good, so tcp_server should return an object
# that provides kill() method or removed altogether
def
DEPRECATED_test_server
(
self
):
connected
=
[]
current
=
gevent
.
getcurrent
()
def
accept_twice
((
conn
,
addr
)):
connected
.
append
(
True
)
conn
.
close
()
if
len
(
connected
)
==
2
:
#gevent.kill(current, socket.error(32, 'broken pipe'))
gevent
.
core
.
active_event
(
current
.
throw
,
socket
.
error
(
32
,
'broken pipe'
))
g1
=
gevent
.
spawn_link_exception
(
self
.
create_connection
)
g2
=
gevent
.
spawn_link_exception
(
self
.
create_connection
)
socket
.
tcp_server
(
self
.
listener
,
accept_twice
)
assert
len
(
connected
)
==
2
gevent
.
joinall
([
g1
,
g2
])
if
hasattr
(
socket
,
'ssl'
):
...
...
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