diff options
author | Jesus Cea <jcea@jcea.es> | 2012-10-05 00:48:46 (GMT) |
---|---|---|
committer | Jesus Cea <jcea@jcea.es> | 2012-10-05 00:48:46 (GMT) |
commit | f1af7057208da7b3d15703645688fea971a4fb5e (patch) | |
tree | 39acd4dbcf0f5d9005521d814952164819d7885d /Lib/test/test_socketserver.py | |
parent | 080a2c087e5fa08c44ff121d74ea8ad9d4413c58 (diff) | |
download | cpython-f1af7057208da7b3d15703645688fea971a4fb5e.zip cpython-f1af7057208da7b3d15703645688fea971a4fb5e.tar.gz cpython-f1af7057208da7b3d15703645688fea971a4fb5e.tar.bz2 |
#16135: Removal of OS/2 support (Remove OS2 and OS/2 references)
Diffstat (limited to 'Lib/test/test_socketserver.py')
-rw-r--r-- | Lib/test/test_socketserver.py | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py index 353f8ff..58fc5d03 100644 --- a/Lib/test/test_socketserver.py +++ b/Lib/test/test_socketserver.py @@ -27,7 +27,7 @@ TEST_STR = b"hello world\n" HOST = test.support.HOST HAVE_UNIX_SOCKETS = hasattr(socket, "AF_UNIX") -HAVE_FORKING = hasattr(os, "fork") and os.name != "os2" +HAVE_FORKING = hasattr(os, "fork") def signal_alarm(n): """Call signal.alarm when it exists (i.e. not on Windows).""" @@ -93,21 +93,7 @@ class SocketServerTest(unittest.TestCase): # XXX: We need a way to tell AF_UNIX to pick its own name # like AF_INET provides port==0. dir = None - if os.name == 'os2': - dir = '\socket' fn = tempfile.mktemp(prefix='unix_socket.', dir=dir) - if os.name == 'os2': - # AF_UNIX socket names on OS/2 require a specific prefix - # which can't include a drive letter and must also use - # backslashes as directory separators - if fn[1] == ':': - fn = fn[2:] - if fn[0] in (os.sep, os.altsep): - fn = fn[1:] - if os.sep == '/': - fn = fn.replace(os.sep, os.altsep) - else: - fn = fn.replace(os.altsep, os.sep) self.test_files.append(fn) return fn |