diff options
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 23:57:24 (GMT) |
|---|---|---|
| committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2008-02-03 23:57:24 (GMT) |
| commit | 72a6576279b81213c426d1022ddc97f30a698636 (patch) | |
| tree | 09f1ec9b74baf1b119fdf168f3a2bf620eff2ba5 /Lib/test/test_socketserver.py | |
| parent | 07974d7a936e244e1b0daf2650a465bc61a62765 (diff) | |
| download | cpython-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.py | 15 |
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: |
