Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(114874)

Unified Diff: Lib/test/test_socketserver.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_socket.py ('k') | Lib/test/test_source_encoding.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_socketserver.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_socketserver.py Wed Mar 02 00:01:35 2016 +0000
@@ -2,17 +2,17 @@
Test suite for socketserver.
"""
import contextlib
import os
import select
import signal
import socket
-import select
+import sys
import errno
import tempfile
import unittest
import socketserver
import test.support
from test.support import reap_children, reap_threads, verbose
try:
@@ -184,22 +184,24 @@ class SocketServerTest(unittest.TestCase
@requires_forking
def test_ForkingTCPServer(self):
with simple_subprocess(self):
self.run_server(socketserver.ForkingTCPServer,
socketserver.StreamRequestHandler,
self.stream_examine)
@requires_unix_sockets
+ @unittest.skipIf(sys.platform == 'ios', "iOS doesn't fully support UNIX sockets.")
def test_UnixStreamServer(self):
self.run_server(socketserver.UnixStreamServer,
socketserver.StreamRequestHandler,
self.stream_examine)
@requires_unix_sockets
+ @unittest.skipIf(sys.platform == 'ios', "iOS doesn't fully support UNIX sockets.")
def test_ThreadingUnixStreamServer(self):
self.run_server(socketserver.ThreadingUnixStreamServer,
socketserver.StreamRequestHandler,
self.stream_examine)
@requires_unix_sockets
@requires_forking
def test_ForkingUnixStreamServer(self):
« no previous file with comments | « Lib/test/test_socket.py ('k') | Lib/test/test_source_encoding.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+