summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_socketserver.py
diff options
context:
space:
mode:
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-02-03 23:57:24 (GMT)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>2008-02-03 23:57:24 (GMT)
commit72a6576279b81213c426d1022ddc97f30a698636 (patch)
tree09f1ec9b74baf1b119fdf168f3a2bf620eff2ba5 /Lib/test/test_socketserver.py
parent07974d7a936e244e1b0daf2650a465bc61a62765 (diff)
downloadcpython-72a6576279b81213c426d1022ddc97f30a698636.zip
cpython-72a6576279b81213c426d1022ddc97f30a698636.tar.gz
cpython-72a6576279b81213c426d1022ddc97f30a698636.tar.bz2
Let test_socketserver pass on win32, which does not have AF_UNIX sockets.
Diffstat (limited to 'Lib/test/test_socketserver.py')
-rw-r--r--Lib/test/test_socketserver.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/test/test_socketserver.py b/Lib/test/test_socketserver.py
index d8ae4da..79f3038 100644
--- a/Lib/test/test_socketserver.py
+++ b/Lib/test/test_socketserver.py
@@ -51,13 +51,14 @@ class MyDatagramHandler(MyMixinHandler,
SocketServer.DatagramRequestHandler):
pass
-class ForkingUnixStreamServer(SocketServer.ForkingMixIn,
- SocketServer.UnixStreamServer):
- pass
-
-class ForkingUnixDatagramServer(SocketServer.ForkingMixIn,
- SocketServer.UnixDatagramServer):
- pass
+if HAVE_UNIX_SOCKETS:
+ class ForkingUnixStreamServer(SocketServer.ForkingMixIn,
+ SocketServer.UnixStreamServer):
+ pass
+
+ class ForkingUnixDatagramServer(SocketServer.ForkingMixIn,
+ SocketServer.UnixDatagramServer):
+ pass
class MyMixinServer: