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
a945969d
Commit
a945969d
authored
Jun 03, 2016
by
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue25931: fix tests broken by the conditional define of socketserver.Forking*
parent
aea16503
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
Lib/test/test_socketserver.py
Lib/test/test_socketserver.py
+7
-6
No files found.
Lib/test/test_socketserver.py
View file @
a945969d
...
...
@@ -44,7 +44,7 @@ def receive(sock, n, timeout=20):
else
:
raise
RuntimeError
(
"timed out on %r"
%
(
sock
,))
if
HAVE_UNIX_SOCKETS
:
if
HAVE_UNIX_SOCKETS
and
HAVE_FORKING
:
class
ForkingUnixStreamServer
(
socketserver
.
ForkingMixIn
,
socketserver
.
UnixStreamServer
):
pass
...
...
@@ -368,11 +368,12 @@ class ThreadingErrorTestServer(socketserver.ThreadingMixIn,
self
.
done
.
wait
()
class
ForkingErrorTestServer
(
socketserver
.
ForkingMixIn
,
BaseErrorTestServer
):
def
wait_done
(
self
):
[
child
]
=
self
.
active_children
os
.
waitpid
(
child
,
0
)
self
.
active_children
.
clear
()
if
HAVE_FORKING
:
class
ForkingErrorTestServer
(
socketserver
.
ForkingMixIn
,
BaseErrorTestServer
):
def
wait_done
(
self
):
[
child
]
=
self
.
active_children
os
.
waitpid
(
child
,
0
)
self
.
active_children
.
clear
()
class
MiscTestCase
(
unittest
.
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