Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
240c55f7
Commit
240c55f7
authored
Nov 10, 2011
by
Charles-François Natali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix test_socket when built whithout threads.
parent
24729f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Lib/test/test_socket.py
Lib/test/test_socket.py
+4
-1
No files found.
Lib/test/test_socket.py
View file @
240c55f7
...
@@ -305,7 +305,6 @@ class ThreadedRDSSocketTest(SocketRDSTest, ThreadableTest):
...
@@ -305,7 +305,6 @@ class ThreadedRDSSocketTest(SocketRDSTest, ThreadableTest):
def
__init__
(
self
,
methodName
=
'runTest'
):
def
__init__
(
self
,
methodName
=
'runTest'
):
SocketRDSTest
.
__init__
(
self
,
methodName
=
methodName
)
SocketRDSTest
.
__init__
(
self
,
methodName
=
methodName
)
ThreadableTest
.
__init__
(
self
)
ThreadableTest
.
__init__
(
self
)
self
.
evt
=
threading
.
Event
()
def
clientSetUp
(
self
):
def
clientSetUp
(
self
):
self
.
cli
=
socket
.
socket
(
socket
.
PF_RDS
,
socket
.
SOCK_SEQPACKET
,
0
)
self
.
cli
=
socket
.
socket
(
socket
.
PF_RDS
,
socket
.
SOCK_SEQPACKET
,
0
)
...
@@ -1316,6 +1315,10 @@ class RDSTest(ThreadedRDSSocketTest):
...
@@ -1316,6 +1315,10 @@ class RDSTest(ThreadedRDSSocketTest):
def
__init__
(
self
,
methodName
=
'runTest'
):
def
__init__
(
self
,
methodName
=
'runTest'
):
ThreadedRDSSocketTest
.
__init__
(
self
,
methodName
=
methodName
)
ThreadedRDSSocketTest
.
__init__
(
self
,
methodName
=
methodName
)
def
setUp
(
self
):
super
().
setUp
()
self
.
evt
=
threading
.
Event
()
def
testSendAndRecv
(
self
):
def
testSendAndRecv
(
self
):
data
,
addr
=
self
.
serv
.
recvfrom
(
self
.
bufsize
)
data
,
addr
=
self
.
serv
.
recvfrom
(
self
.
bufsize
)
self
.
assertEqual
(
self
.
data
,
data
)
self
.
assertEqual
(
self
.
data
,
data
)
...
...
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